Help for this page

Select Code to Download


  1. or download this
    use strict;        # Always use strict
    
    ...
    # do your stuff
    
    close FILE;
    
  2. or download this
    local *FILE;        # With strict, we need to predeclare *FILE
                            # (not necessary for builtin file handles such
    + as STDIN)