Welcome to the Monastery | |
PerlMonks |
Re^2: Performance penalty of using qr//by Athanasius (Archbishop) |
on Dec 21, 2017 at 06:44 UTC ( [id://1205958]=note: print w/replies, xml ) | Need Help?? |
Hi LanX, The inner for loops are each executed 3,789,182 times. And yes, I originally had $s =~ /$re/ instead of $s =~ $re — it made no appreciable difference. Update: Deparsing suggests that Perl adds the slashes anyway:
Cheers,
In Section
Seekers of Perl Wisdom
|
|