in reply to cut of first char of a string

Actually, this:

$s =~ s/^.//; print "$s\n";

Could be written as:

$s =~ s/.//; print "$s\n";

Update: I had assumed the string would only contain the regular \w characters; won't work for strings starting with \n, obviously (because the dot doesn't match newlines). See Re: cut of first char of a string.