in reply to File length ??
perl does a wonderful job of pattern matching. Here's what I've got:
This gets rid of lines that have only whitespace. If you want truly blank lines take the \s* out of the regex.while(<DATA>){ # Populate the data array if ($_ !~ /^\s*$/){ push @data, $_; } }
thor
In Section
Seekers of Perl Wisdom