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


in reply to Re: Common Perl Pitfalls
in thread Common Perl Pitfalls

I agree on almost all counts.
I remember having used the option you talked about (modifying the regex and matching in the loop without 'g') before. I just don't like it, though. I feel that it's quite unstable and will turn into an infinite loop the second you're not looking...