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;
Back to
Seekers of Perl Wisdom