|P is for Practical|
regex compilationby morgon (Priest)
|on Feb 12, 2019 at 17:33 UTC||Need Help??|
morgon has asked for the wisdom of the Perl Monks concerning the following question:
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...