in reply to regexp for blank lines
By blank, do you mean completely empty (except for the final \n)? Or do you mean empty except for whitespace?
# completely empty except for trailing newline... next if $line eq "\n"; # Any amount of whitespace permitted.... next if $line =~ /^\s+$/;
HTH
Dave
|
|---|