cshirky has asked for the wisdom of the Perl Monks concerning the following question:
The current match is
Would front anchoring a single char match, as inif ( /\@/ ) { &Frobnitz($_); }
be faster?if ( /^.*\@/ ) { &Frobnitz($_); }
Tusen tak,
-clay
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex anchor speed ?: Is /^.*X/ faster than /X/ ?
by Fastolfe (Vicar) on Nov 08, 2000 at 21:08 UTC | |
|
Re: Regex anchor speed ?: Is /^.*X/ faster than /X/ ?
by Ovid (Cardinal) on Nov 08, 2000 at 23:16 UTC | |
by Dominus (Parson) on Nov 12, 2000 at 22:25 UTC | |
|
Re: Regex anchor speed ?: Is /^.*X/ faster than /X/ ?
by extremely (Priest) on Nov 09, 2000 at 16:34 UTC |