in reply to Re: Re: Regex - one and only one / at beginning and end of file path
in thread Regex - one and only one / at beginning and end of file path
What concern does that snippet address? I don't see how it has anything to do with anything posted anywhere on this thread?
As for performance, despite appearances, you're actually going to have a hard time beating the regex engine. With substr, you usually have to do a (relative) lot of explicit work in Perl code, which means many more ops to interpret; with regexen, most of the infrastructure is implicit in the guts of Perl, which execute much faster.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: Regex - one and only one / at beginning and end of file path
by CombatSquirrel (Hermit) on Dec 15, 2003 at 18:52 UTC | |
by Aristotle (Chancellor) on Dec 15, 2003 at 20:19 UTC |