http://www.perlmonks.org?node_id=187485


in reply to Re: Infinite loop regex
in thread Infinite loop regex

Minor Nitpick:

Why bother with the redundent @list?

$string = 'a=111a=222a=333'; for ($string =~ m/(a=\d+)/g) { print "$_\n"; # any other code }