Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my @questions = <QUESTFILE>; # slurps up the entire file
    close(QUESTFILE);
    
  2. or download this
    
    # this opens the answers file for append
    ...
    }
    close(ANSFILE);
    exit;