There's more than one way to do things | |
PerlMonks |
Re: Re: Regex - one and only one / at beginning and end of file pathby CombatSquirrel (Hermit) |
on Dec 15, 2003 at 07:21 UTC ( [id://314772]=note: print w/replies, xml ) | Need Help?? |
Just TIMTOWTDI:
I don't know how fast it is, but I generally prefer substr over RegExes in fixed-width-fixed-content problems. Cheers, CombatSquirrel. Entropy is the tendency of everything going to hell.
In Section
Seekers of Perl Wisdom
|
|