http://qs321.pair.com?node_id=412838

gitarwmn has asked for the wisdom of the Perl Monks concerning the following question:


I have a file in which I am trying to parse out any blank lines with a subsitition. The problem is I'm not sure how to get rid of the blank lines.
the file looks something like this
#fred #barney #wilma #betty

So how can I get rid of the blank line(s)in the file when they are just a newline within the text file. Thanks