sh1tn has asked for the wisdom of the Perl Monks concerning the following question:
whereas I wanted:my @links = $mech->links; for( @links ){ print $_->text,$/ } __END__ results: Beatles - 01 - Miche..> Beatles - 02 - Drive..> Beatles - 03 - What ..> ...
my @links = $mech->links; for( @links ){ print text($_->[0]).$/ } sub text { $_ = uri_unescape(shift) } __END__ results: Beatles - 01 - Michelle.mp3 Beatles - 02 - Drive My Car.mp3 Beatles - 03 - What Goes On.mp3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize::Link bug?
by sanPerl (Friar) on Dec 23, 2005 at 05:15 UTC | |
|
Re: WWW::Mechanize::Link bug?
by diotalevi (Canon) on Dec 23, 2005 at 03:57 UTC | |
by sh1tn (Priest) on Dec 23, 2005 at 11:10 UTC | |
|
Re: WWW::Mechanize::Link bug?
by ikegami (Patriarch) on Dec 23, 2005 at 05:50 UTC | |
|