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 reply to Re: File length ??
by thor
in thread File length ??
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |