in reply to Re: Analyzing regular expression performance
in thread Analyzing regular expression performance
For the performance, one thing that comes to my mind is the /o qualifier to compile once only
Yikes! Don't ever recommend that. It's rarely needed and causes more trouble than it is worth. Perl already does optimizations for patterns that contain no variables and for patterns that do contain variables that don't vary over the lifetime of the code in which the pattern appears, so /o won't buy you anything there. If you really need the "compile once" idea, just use qr/.../
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Analyzing regular expression performance
by mantadin (Beadle) on May 12, 2006 at 22:51 UTC | |
by duff (Parson) on May 13, 2006 at 04:32 UTC |