Help for this page

Select Code to Download


  1. or download this
    while (my $line = readline($FH[$i])) {
       ...
    }
    
  2. or download this
    my $fh = $FH[$i];
    while (my $line = <$fh>) {
       ...
    }
    
  3. or download this
    open(FILE_A,">","a.txt") || ...;
    open(FILE_B,">","b.txt") || ...;
    my @FH=(*FILE_A,*FILE_B);
    
  4. or download this
    open(my $FILE_A,">","a.txt") || ...;
    open(my $FILE_B,">","b.txt") || ...;
    my @FH=($FILE_A,$FILE_B);