in reply to Chop command that removes the first character

Thanks all. btw, I meant chomp of course...
  • Comment on Re: Chop command that removes the first character

Replies are listed 'Best First'.
Re^2: Chop command that removes the first character
by Happy-the-monk (Canon) on Oct 26, 2004 at 09:47 UTC

    I meant chomp of course

    Then you will have to test whether the first character has the value of Perl's special variable   $/   to be removed. See   chomp.

    Cheers, Sören