Help for this page

Select Code to Download


  1. or download this
    # FH is our example file handle
    while(<FH>){
        #action on each line
    }
    
  2. or download this
    my @file = <FH>;
    foreach my $line (@file){
        # action on each line
    }