Subject: | within the block itself, MethodCallWithBlock does not work |
This works:
use 5.010;
use strict;
use Web::Magic -quotelike => 'web';
use PerlX::MethodCallWithBlock;
my $u = web <http://www.perlmonks.org/>
-> assert_success
-> make_absolute_urls
-> tap { $_->findnodes('~links')->foreach(sub { say $_->{href} }) };
This does not work:
use 5.010;
use strict;
use Web::Magic -quotelike => 'web';
use PerlX::MethodCallWithBlock;
my $u = web <http://www.perlmonks.org/>
-> assert_success
-> make_absolute_urls
-> tap { $_->findnodes('~links')->foreach { say $_->{href} } };