Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: remove first and last character of string

by rsFalse (Chaplain)
on Oct 14, 2020 at 06:41 UTC ( [id://11122810]=note: print w/replies, xml ) Need Help??


in reply to remove first and last character of string

To delete the first and the last character:
for( 1 .. 2 ){ $string = reverse $string; chop $string; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found