Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Printing last two characters

by ikegami (Patriarch)
on Jan 03, 2008 at 12:10 UTC ( [id://660178]=note: print w/replies, xml ) Need Help??


in reply to Re: Printing last two characters
in thread SOLVED Printing last two characters

Note that
substr($str, -2, 2)
can also be written as
substr($str, -2)
since substr defaults to extracting the rest of the string.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-25 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found