in reply to cut of first char of a string

In addition to the solutions mentioned at Chop command that removes the first character (of which I find the name chip especially cute), I found another solution, which is really contorted but does the thing:

perl -pe "$_ = join '', splice @{[split //]}, 1"

Replies are listed 'Best First'.
Re^2: cut off first char of a string
by Happy-the-monk (Canon) on Mar 08, 2005 at 14:37 UTC

    of which I find the name chip especially cute

    I like chimp for the counterpart of chomp even better =)

    Cheers, Sören