Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Check last character of a string

by LesleyB (Friar)
on Aug 06, 2008 at 09:25 UTC ( [id://702575]=note: print w/replies, xml ) Need Help??


in reply to Check last character of a string

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://702575]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-19 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found