Help for this page

Select Code to Download


  1. or download this
    open(FH,"file.txt");
    while(<FH>)
    ...
            print "$var\n";
    }
    close(FH);
    
  2. or download this
    open(FH,"file.txt");
    my $var;
    ...
            $var .= $_;
    }
    close(FH);