- or download this
$file_data =~ s/\n\n+/\n/gs;
- or download this
# Suggest using scalar filehandles and checking to
# see if open succeeded...
...
# process $file_data
# etc...
- or download this
$file_data =~ s/\n[\s\n]+/\n/gs;
- or download this
$ perl -ni -e 'print if /\S/' *.shtml