Help for this page

Select Code to Download


  1. or download this
    $line = <FILE>; # reads one line from FILE;
    @lines = <FILE>; # slurps up the whole thing.
    for $line (<FILE>) ... # which of the above applies?
    
  2. or download this
    for $line (@lines)