Here the pattern can be further simplified: print if /\S/;
In reply to Re^2: Remove whitespace between lines by Anonymous Monk in thread Remove whitespace between lines by wrkrbeee