Help for this page

Select Code to Download


  1. or download this
    open (INFILE_link,"<$fh") or die $!;
    
  2. or download this
    open my $INFILE_link, '<', $fh or die "Could not open '$fh' because: $
    +!";
    
  3. or download this
    while (my $line = <INFILE_link>) {
        chomp $line;
        my @line_array = split(/\s+/, $line);
        push (@file_array, \@line_array);
    }
    
  4. or download this
    while ( <$INFILE_link> ) {
        push @file_array, [ split ];
    }
    
  5. or download this
    while ( my $line = <$INFILE_link> ) {
        push @file_array, [ split ' ', $line ];
    }
    
  6. or download this
       my ($i, $a, $b, $c, $d, $x, $w, $y, $z, $ta, $tb, $tc, $td);
             
           $a= $b= $c= $d= $x= $w= $y= $z= $ta = $tb =$tc =$td= 0;
    
  7. or download this
       my ( $i, $a, $b, $c, $d, $x, $w, $y, $z, $ta, $tb, $tc, $td ) = ( 0
    + ) x 13;
    
  8. or download this
       $_ = 0 for my ( $i, $a, $b, $c, $d, $x, $w, $y, $z, $ta, $tb, $tc, 
    +$td );