Help for this page

Select Code to Download


  1. or download this
    open(local *INFILE, '<', $filename)
       or die("Unable to open the input file: $!\n");
    ...
    }
    
    print @filtered;
    
  2. or download this
    open(local *INFILE, '<', $filename)
       or die("Unable to open the input file: $!\n");
    ...
    my @filtered = grep { !/[#*]/ } <INFILE>;
    
    print @filtered;