foreach my $line (@data) { #Work to be done on each line of the file $file_data .= $line if ( $line =~ /\S/ ); }
This way, a line is only added to the $file_data if it has a character that is not white space.
In reply to Re: Removing white-lines...
by kyle
in thread Removing white-lines...
by pyro.699
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |