Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: cut of first char of a string

by Anonymous Monk
on Mar 08, 2005 at 10:25 UTC ( [id://437484]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $s = (split /./s, $s, 2)[1] err ""; # Needs 'defined-or' patch, or 5.9
    +.1
    $s = (split /./s, $s, 2)[1]; $s = "" unless defined $s;
    ...
    $s = pack "A*", (unpack "A*", $s)[1 .. length($s)-1];
    $s = pack "A*", unpack "xA*", $s if length $s;
    $s = pack "A*", unpack "xA@{[length($s)-1]}", $s if length $s;
    

Log In?
Username:
Password:

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

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

    No recent polls found