This covers exactly my understanding.
You'll also find this in perlop for m//
- "But now, the only reasons to use /o are one of:..."
The perldocs are vast and often redundant, and sometimes contradictory.
They are like much of the code base a collaborative design.
The wording at perlre is at best dubious and as far as I can see not substationated.
As long as nobody shows me a real bug caused by /o I'd call this BS.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re^14: Reusing a complex regexp in multiple spots, escaping the regexp
by LanX
in thread Reusing a complex regexp in multiple spots, escaping the regexp
by ecm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |