in reply to Re: Chop command that removes the first character
in thread Chop command that removes the first character

Actually you want s/^.//s You need the /s to make a . match *anything* - it does not by default. Also why capture to $1 only to replace it with an exact replica?

Replies are listed 'Best First'.
Re^3: Chop command that removes the first character
by insaniac (Friar) on Oct 26, 2004 at 12:35 UTC
    i don't know... i'm just a beginner, beginners make mistakes :-D
    so i'm sorry: i just assumed the first character would never be a newline (that's the only thing the /s does actually.. it allows you to also match a newline with the .)
    --
    to ask a question is a moment of shame
    to remain ignorant is a lifelong shame