in reply to Re: string matching
in thread string matching

For work "do not have slash on end", I think this is better:
if ( $str !~ m[/$] ) { # do something }
which don't need to escape "/".