my $string = substr($data[0], 0, 5); [download]
If this does not answer your question, please:
In reply to Re: text file parsing with chomp by toolic in thread text file parsing with chomp by fjdb3