Help for this page

Select Code to Download


  1. or download this
    #Maybe this what you mean????
    open (F1, '<' ,$file1) or die "Cannot open file $file1 for reading\n";
    open (F2, '<', $file2) or die "Cannot open file $file2 for reading\n";
    
  2. or download this
    while ( <F1>, <F2> )
    {  
    ...
    
       # <F1> plays no role here - it is a No-Operation: NoOp
    }
    
  3. or download this
    while ( <F2> ) 
    {
      # $_ is a line from $file2
    }