For that matter, if you are grouping all the matches at once, why bother with the temporary string?
for ($obj->method =~ /pat(keep)/g) { print $count++, " $_\n"; # etc. }
--rjray
In reply to Re: Re: Re: Infinite loop regex
by rjray
in thread Infinite loop regex
by Baz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |