in reply to Re^2: How useful is the /o regexp modifier?
in thread How useful is the /o regexp modifier?
Basically, there are two cases where you may want to use /o:
In case 2), were you want the regexp to act as if $var hasn't change, I'd pity the programmer (even if it's you) who has to maintain that code. It's quite obfuscated.
So in short, IMO, the performance gain doesn't overcome the drawback of (possible) "action over time" (akin "action at a distance").
I never use /o, and /o is a red flag in my book.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How useful is the /o regexp modifier?
by hbm (Hermit) on Feb 03, 2009 at 22:31 UTC |