in reply to text file parsing with chomp

Removing the first 5 chars from a $string:

substr($string,0,5)='';

Replies are listed 'Best First'.
Re^2: text file parsing with chomp
by jwkrahn (Abbot) on Aug 12, 2009 at 21:08 UTC

    Or alternatively:

    substr $string, 0, 5, '';