laziness, impatience, and hubris | |
PerlMonks |
Re^2: Script far too slow with large files - wisdom needed!by blahblahblah (Priest) |
on Jan 23, 2016 at 13:09 UTC ( [id://1153461]=note: print w/replies, xml ) | Need Help?? |
I've gotten good results from this too. In cases where you have a big regex which is too complicated to break down, you can do both: first, use index to do a simpler test. If that passes, then go on to use the full regex.
In Section
Seekers of Perl Wisdom
|
|