http://qs1969.pair.com?node_id=615781

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?
my @galleries_found = $mech->content =~ m/(gallery\.php\?gid=\d+)/gi;
And
push(@pics, $1) while $mech->content =~ m#(images/thumb/\d+/\d+/ +\d+\.jpg)#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?