The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
>but shouldn't the pre-compiled regex run faster
Not necessarily From perlop Since Perl may compile the pattern at the moment of execution of qr() operator, using qr() may have speed advantages in some situations,... And not any more as often as it used to be! ...Perl has many other internal optimizations, ... (emphasizes added) UPDATE: Furthermore in both your code examples the regexes are just compiled and used once.
Cheers Rolf In reply to Re^3: Problem with pre-compiled regex
by LanX
|
|