crmpicco
06-20-2006, 10:21 AM
#!C:/Perl/bin/perl.exe
$new_dir = "Bob";
$perm = 755;
makeDir();
sub makeDir {
mkdir ($new_dir,$perm) or "Error making Directory ($new_dir)\n";
exit();
}
print "Content-type: text/HTML\n\n";
I am attempting to create a directory (called Bob) with this Perl script, however, it doesnt seem to be working. I have managed to create a file and write to it with another script, but this one doesnt seem to be working at all.
I am just presented with this error:
=====================================================
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
=====================================================
$new_dir = "Bob";
$perm = 755;
makeDir();
sub makeDir {
mkdir ($new_dir,$perm) or "Error making Directory ($new_dir)\n";
exit();
}
print "Content-type: text/HTML\n\n";
I am attempting to create a directory (called Bob) with this Perl script, however, it doesnt seem to be working. I have managed to create a file and write to it with another script, but this one doesnt seem to be working at all.
I am just presented with this error:
=====================================================
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
=====================================================