in reply to Precompiling qr/.../o question
I haven't looked at the source-code myself, but I would expect for regular-expressions to be bound to a certain scope and for them to be cached ... say, by the expanded regular-expression string. Given a particular pattern to evaluate, you would first peek to see if it's in the cache and if so re-use it. It is my understanding that this is precisely what recent Perl implementations do.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Precompiling qr/.../o question
by ikegami (Patriarch) on Apr 08, 2008 at 04:28 UTC |