Why bother with the redundent @list?
$string = 'a=111a=222a=333'; for ($string =~ m/(a=\d+)/g) { print "$_\n"; # any other code }
In reply to Re: Re: Infinite loop regex
by tlhf
in thread Infinite loop regex
by Baz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |