$new = param('home'); Now I wanna check to see if new has a / at the end
if ($new !~ m[/$]) {
if it doesnt then add a /.
$new .= '/'; }
But it's a url so what if the user uses a \ instead of /.
URLs use slashes, not backslashes.
By the way: $new =~ s[\z(?<!/)][/];.
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
In reply to Re: search =~ for /'s
by Juerd
in thread search =~ for /'s
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |