http://www.perlmonks.org?node_id=178278

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

well lets say
$new = param('home');
Now I wanna check to see if new has a / at the end, if it doesnt then add a /. But it's a url so what if the user uses a \ instead of /.