in reply to Re: Regex: same code works and fails, why?
in thread Regex: same code works and fails, why?
From 'man perlop':
If you want such a pattern to be compiled only once, add a "/o" after the trailing delimiter. This avoids expensive run-time recompilations, and is useful when the value you are interpolating won't change over the life of the script.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re:^4 Regex: same code works and fails, why?
by duff (Parson) on Jan 07, 2004 at 16:45 UTC | |
|
Re: Regex: same code works and fails, why?
by Abigail-II (Bishop) on Jan 07, 2004 at 16:30 UTC | |
by Hena (Friar) on Jan 08, 2004 at 07:07 UTC |