lazybowel has asked for the wisdom of the Perl Monks concerning the following question:
$i=1; $mech->get("http://www.somesite.com/"); @links = $agent->links(); foreach (@links) { if ($links[$i]->url() =~ m!(-[0-9][0-9][0-9][0-9][0-9][0-9]*)!) { $links[$i]->url() =~ m!([0-9][0-9][0-9][0-9][0-9][0-9]*)!; $art[$i] = $1; print "$art[$i]\n"; } $i++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help needed with mechanize
by kyle (Abbot) on May 09, 2007 at 02:30 UTC | |
|
Re: Help needed with mechanize
by chrism01 (Friar) on May 09, 2007 at 01:06 UTC | |
|
Re: Help needed with mechanize
by naikonta (Curate) on May 09, 2007 at 05:16 UTC | |
|
Re: Help needed with mechanize
by akho (Hermit) on May 09, 2007 at 09:16 UTC | |
by lazybowel (Acolyte) on May 09, 2007 at 21:15 UTC |