in reply to cut of first char of a string

More split silliness.
(undef, $s) = split //, $s, 2;

The 3rd parameter 2 makes split split into only 2 parts. I then simply ignore the first part.

Replies are listed 'Best First'.
Re^2: cut of first char of a string
by Anonymous Monk on Mar 08, 2005 at 10:29 UTC
    Note that your solution makes $s undefined if $s was equal to the empty string. chop doesn't undef an empty string.