Help for this page

Select Code to Download


  1. or download this
    while (<$foo>)      # Read in a line to $_
    {
          print <$foo>; # Print the rest of the file
    }
    
  2. or download this
    while (<$foo>)      # Read in a line to $_
    {
          print;        # Print $_
    }
    
  3. or download this
    print while (<$foo>);  # Read in lines and print them
  4. or download this
    print <$foo>;  # Print all lines from the file
  5. or download this
    # -- IO Implementation --------------------------------
    
    ...
    print <FILE>;
    
    close (FILE);