P is for Practical | |
PerlMonks |
Re: Why study SCALAR?by LunaticLeo (Scribe) |
on Dec 26, 2001 at 22:20 UTC ( [id://134450]=note: print w/replies, xml ) | Need Help?? |
study() is intended to be used to help optimize regular expressions on the scalar.
I have done benchmarks repeating the same regex on the scalar, and multiple regex's on the same scalar. I have never found a speedup. BTW, my benchmarks were like: Basically, study() is an anachronism. Feel free to ignore it, everybody else does.
In Section
Seekers of Perl Wisdom
|
|