|Syntactic Confectionery Delight|
meaning of /o in regexesby mce (Curate)
|on Dec 06, 2002 at 12:19 UTC||Need Help??|
mce has asked for the
wisdom of the Perl Monks concerning the following question:
Can anyone enlighten me about the usage of the /o option in regular expressions. I have read the documentation (camel book), but this even puzzels me more. f.e.
will print "with o" only once while "without o" 9 times.
So, this means that using /o is the same as fast way precompiling the regex, like you would with qr//?
But what is the difference then?
Is this all correct?