#!/usr/bin/perl -w
use Win32::File;
$counter_name="TEST SCRIPT";
$sample_file="sample.t";
print "Content-type:text/html\n\n";
print "
Script Name: $counter_name
\n";
print "Attempt to write file: $sample_file
\n";
print "\n\n";
open(FH, ">$sample_file") or die(print "Cannot write to $sample_file file: $!\n");
print FH "I will print this to a file\n";
close(FH);
print "Writing File $sample_file, complete - $counter_name
\n";
print "\n\n";