Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Check last character of a stringby LesleyB (Friar) |
on Aug 06, 2008 at 09:25 UTC ( [id://702575]=note: print w/replies, xml ) | Need Help?? |
I take it you mean 'string' not 'sting' and you didn't declare the regular expression you tried so I am left wondering if you tried one at all. I'd probably try something like =~ /\\$/ which is a very simple (but untested) regexp Try reading perlrequick or perlre Update: corrected reference and use of incorrect character
In Section
Seekers of Perl Wisdom
|
|