Perl Content Remover
From: Arturo (webmaster_at_awiebe.com)
Date: 11/25/03
- Next message: David: "Re: Sys:Syslog"
- Previous message: David: "Re: Can I improve the performance of script by using constant?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Nov 2003 16:19:23 -0800
I put this Perl program together. The idea is to be able to submit a
path and then program will delete contents of that file in the path.
#!/usr/bin/perl
require "cgi-lib.pl";
&ReadParse(*input);
$sitedata= $input{'remove_path'};
open(DAT,">$sitedata") || die("Cannot remove entry");
print DAT "\n";
close(DAT);
print "Content-type: text/html\n\n";
print "<html><body>";
print "The entry was removed!";
print "</body></html>";
It's a very simpe program, I can't figure out why it doesn't work
though.
Is there something I'm missing here?
- Next message: David: "Re: Sys:Syslog"
- Previous message: David: "Re: Can I improve the performance of script by using constant?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]