Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Removing the first character from a variable

by Elgon (Curate)
on Jun 09, 2001 at 08:21 UTC ( [id://87142]=note: print w/replies, xml ) Need Help??


in reply to Re: Removing the first character from a variable
in thread Removing the first character from a variable

I was thinking to chop off the first character...

$id=~s/^(.)//;

and if you want to save it afterwards...

$chopped_character = $1;

NB: Regexps are not my strongest point, so post a reply if I am talking crap, preferably with an explanation of why!

"Violence is the first resort of those faced with yet another BSOD."
--/me

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-16 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found