in reply to newlines in regular expressions
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 Section
Seekers of Perl Wisdom