![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re: Check last character of a stringby Perlbotics (Bishop) |
on Aug 06, 2008 at 09:23 UTC ( #702573=note: print w/replies, xml ) | Need Help?? |
Do you mean $location .= '\\' unless $location =~ m(\\$); ? (Variations: chomp and m(\\\Z) )
In Section
Seekers of Perl Wisdom
|
|