in reply to Re^3: Remove whitespace between lines
in thread Remove whitespace between lines

That's it, works great! Appreciate your interest and patience! :-)

Replies are listed 'Best First'.
Re^5: Remove whitespace between lines
by Marshall (Abbot) on Feb 04, 2015 at 01:04 UTC
    A more normal way to do this is to skip the blank lines and then process those lines further.
    while (my $line = <$fh_in>) { next if ($line ~ m/^\s*$/); #skip blank lines #more processing of this non-blank line }