in reply to Re: text file parsing with chomp
in thread text file parsing with chomp

Or alternatively:

substr $string, 0, 5, '';