go ahead... be a heretic | |
PerlMonks |
Re: Double blank lines to single blank lineby shigetsu (Hermit) |
on May 10, 2007 at 23:45 UTC ( [id://614780]=note: print w/replies, xml ) | Need Help?? |
Dangerous (be sure to have an independent backup before you read on): If you want to edit the data in place, you could use
Be aware that it'll apply the changes immediately, but will create a backup of the file edited with the extension .bak. Furthermore, this approach assumes that your _entire_ input file looks like the excerpt you provided. Bear in mind that otherwise perhaps, chaos will ensue.
In Section
Seekers of Perl Wisdom
|
|