Help for this page

Select Code to Download


  1. or download this
    ($fh, $filename) = tempfile($template, DIR => $dir)
           or die "  $progname: Error creating $filename: $!";
    
  2. or download this
       print $fh "\nS'working?\n"
           or die "$progname: Error writing to $filename: $!";
       close ($fh)
           or die "$progname: Error closing $filename: $!";
       print "Printed data to $filename\n";