Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: cut of first char of a string

by Limbic~Region (Chancellor)
on Mar 08, 2005 at 13:50 UTC ( [id://437548]=note: print w/replies, xml ) Need Help??


in reply to cut of first char of a string

holli,
If we are just being silly:
$str = $_->[0] ? $str . $_->[1] : '' for map { [ $_, substr($str,$_,1) + ] } 0 .. length($str) - 1;

Cheers - L~R

Log In?
Username:
Password:

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

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

    No recent polls found