Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: substring problem???

by borisz (Canon)
on May 28, 2006 at 08:23 UTC ( [id://552145]=note: print w/replies, xml ) Need Help??


in reply to Re: substring problem???
in thread substring problem???

print substr($string, -4, 4);
Boris

Replies are listed 'Best First'.
Re^3: substring problem???
by bart (Canon) on May 28, 2006 at 09:03 UTC
    No need for the 3rd parameter if you need the whole rest of the string. Just
    substr($string, -4)
    will do.

Log In?
Username:
Password:

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

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

    No recent polls found