Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Can someone explain what the differences would be between these two chunks of code?
Andmy @galleries_found = $mech->content =~ m/(gallery\.php\?gid=\d+)/gi;
Asasuming both are collecting the same data, that is. What's the difference/what's the better way of forming an array from all matches found from a mech->content fetch?push(@pics, $1) while $mech->content =~ m#(images/thumb/\d+/\d+/ +\d+\.jpg)#gi;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Difference between this array assignment and push
by kyle (Abbot) on May 16, 2007 at 14:42 UTC | |
by xhunter (Sexton) on May 16, 2007 at 17:48 UTC | |
by naikonta (Curate) on May 16, 2007 at 14:59 UTC | |
Re: Difference between this array assignment and push
by rinceWind (Monsignor) on May 16, 2007 at 14:37 UTC | |
Re: Difference between this array assignment and push
by ikegami (Patriarch) on May 16, 2007 at 15:23 UTC |
Back to
Seekers of Perl Wisdom