Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    #this program is supposed to take user input put it into an array and 
    +then add 
    ...
    open (LOG, '>>', 'perlogfile.rtf') or die "Unable to open logfile: $!"
    +;
    print LOG @stuff;
    close (LOG);
    
  2. or download this
    open (my $fh, '>>', 'perlogfile.rtf') or die "Unable to open logfile: 
    +$!";
    print $fh @stuff;
    close ($fh);