in reply to How do I remove blank lines from text files?

open (NEWFILE,">newfile") or die print "yikes: $!; open (FILE,"<myfile") or die print "yikes: my file $!\n"; while (<FILE>) { if ($_ =~ /\w/) { print NEWFILE; } close FILE; close NEWFILE;
  • Comment on RE: How do I remove blank lines from text files?