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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: newlines in regular expressions
by tachyon (Chancellor) on Dec 07, 2004 at 06:29 UTC | |
by sgifford (Prior) on Dec 07, 2004 at 06:57 UTC | |
by eyepopslikeamosquito (Bishop) on Dec 07, 2004 at 07:22 UTC | |
by tachyon (Chancellor) on Dec 07, 2004 at 12:09 UTC | |
by tachyon (Chancellor) on Dec 07, 2004 at 11:59 UTC | |
Re: newlines in regular expressions
by conrad (Beadle) on Dec 07, 2004 at 10:29 UTC | |
Re: newlines in regular expressions
by Crian (Deacon) on Dec 07, 2004 at 10:18 UTC |
Back to
Seekers of Perl Wisdom