You might want to add a chomp before the split.
In reply to Re^2: performance issues by gwadej in thread performance issues by perlcat