Perhaps it could be useful (in case that these lines are not really empty because they contain whitespace) to use a script like this:
while (<>) { print unless m~^\s*\n$~; }
This is surely not the most elegant solution, but it should do the task.
In reply to Re: newlines in regular expressions
by Crian
in thread newlines in regular expressions
by gitarwmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |