@lines = grep is_empty($_), @lines;
Where is_empty depends of your definition of empty. For instance:
sub is_empty { my $line = shift; $line eq '' }
BTW, even if you may still be facing the same issue, this is a different question. You should open a new thread for it.
In reply to Re^5: How to pass --MORE--
by salva
in thread How to pass --MORE--
by oguzhantepe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |