RE's

Koos Pol <[email protected]> Fri, 17 Jun 2005 22:51:17 +0200
Newsgroups gmane.comp.web.cthumb.devel
Message-ID <[email protected]>
Just as a helpful hint:

It is much easier to read:

$path =~ s{^\/$/\}{\.};

then 

$path =~ s/^\/$/\/\./;

The latter suffers heavy from LTS (leaning tootpick syndrom.
Can you see at first glance which is the middle delimiter? I can't.
So if you'd have a RE containing \ or | or / in the domain
it is usually the best use {} or <> as RE delimeters.
Without | in the domain, you can also try | as delimiter. That one is also 
quite easy on the eyes.

Just a suggestion.

Cheers,
Koos

-- 
KP
[email protected]


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click