Help for this page

Select Code to Download


  1. or download this
    perl -ne "print unless /^#/" infile > outfile
    
  2. or download this
    use strict;
    use warnings;
    ...
          print $fh_out $_;
       }
    }
    
  3. or download this
    use strict;
    use warnings;
    ...
       or die("Unable to create output file \"$file_out\": $!\n");
    
    print $fh_out (grep !/^#/, <$fh_in>);