Almost. This should clear things up a little:
for my $l ($mech->links) { my $url = $l->url; my $desc = $l->text; my $new = $url; $new =~ s/lol/Laugh Outloud/; print "concerning $desc, $url should be $new\n"; # $mech->get( $new ); }
Be sure to read the WWW::Mechanize::Link page for further info about the links returned by WWW::Mechanize->links().
-Paul
In reply to Re: Substituting for each regular exp in a local file
by jettero
in thread Substituting for each regular exp in a local file
by coder57
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |