- or download this
# match a line that only contains one new line
if ($line =~ /^\n$/) {
- or download this
# match a line that only contains one or more whitespace
if ($line =~ /^\s+$/) {
- or download this
foreach (@blah) {
if ($foo) {
...
# other stuff
}
}
- or download this
# open filehandles ...
...
print OUTPUT $line if $s and $line !~ /^\s+$/;
}