Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Regex Helpby davido (Cardinal) |
on Mar 25, 2013 at 08:28 UTC ( [id://1025251]=note: print w/replies, xml ) | Need Help?? |
More than looking inefficient, it looks unnecessarily cluttered, which can contribute to bugs:
Making those changes would yield:
Now with the /x modifier, you can further clarify things like this:
As for efficiency, what problems are you encountering? If you're dealing with huge input you're probably IO bound anyway. Dave
In Section
Seekers of Perl Wisdom
|
|