in reply to Re: Re: Substitution Trickery
in thread Substitution Trickery


True but that isn't in the psuedo-code that lacertus presents.

His test would also leave a trailing slash on 'foo/bar/'. Is that what is required? Perhaps lacertus will tell us.

If it is required then the following would suffice:

$served =~ s[/$][] if $served =~ m[^/.];

--
John.