in reply to Re: Looking for ways to speed up the parsing of a file...
in thread Looking for ways to speed up the parsing of a file...

Split has a magical whitespace incantation:

$_ = ' foo bar baz '; print "'$_'\n" for split ' ';

So you don't need to trim leading or trailing whitespace to get the desired result.