|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re^3: Why is "any" slow in this case?by ysth (Canon) |
| on Jul 28, 2025 at 16:56 UTC ( [id://11165841]=note: print w/replies, xml ) | Need Help?? |
|
So the regex engine doesn't waste any time updating globals that may not even get used. Instead the cost is deferred until the global is accessed, and incurred every time it is accessed because that's how magic works.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||