Is there a Perl command that will let me delete files from a script?
I've got a script that uses telnet and generates log files.
If an error occurs in the script, a flag is set and an email is sent to notify me.
If no error occurs in the script, I'd like it to delete the log files, but I haven't been able to find a command to do it.
rm doesn't seem to be available in Perl. delete seems to deal with hash entries.
_________
Rott Paws
...It's not a bug. It's an undocumented feature!!!
I've got a script that uses telnet and generates log files.
If an error occurs in the script, a flag is set and an email is sent to notify me.
If no error occurs in the script, I'd like it to delete the log files, but I haven't been able to find a command to do it.
rm doesn't seem to be available in Perl. delete seems to deal with hash entries.
_________
Rott Paws
...It's not a bug. It's an undocumented feature!!!