![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
regex compilationby morgon (Priest) |
on Feb 12, 2019 at 17:33 UTC ( #1229823=perlquestion: print w/replies, xml ) | Need Help?? |
morgon has asked for the wisdom of the Perl Monks concerning the following question:
Hi could someone please explain this behaviour to me as it is unexpected for me: In the first case I compile a regex immediately, in the second I define a string and only in the line where I match it get's compiled. I would have expected that the result would be the same - but it isn't... Why? Many thanks!
Back to
Seekers of Perl Wisdom
|
|