Help for this page

Select Code to Download


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