Help for this page

Select Code to Download


  1. or download this
      while (<FOO_FILE>){
           if  (/$foo/){
    ...
                 print $_;
           }
      }
    
  2. or download this
      while (<FOO_FILE>){ 
           last if /$foo/;
    ...
      close FOO_FILE;
      # just ignore the rest of the file