Marza has asked for the wisdom of the Perl Monks concerning the following question:
I am probably being stupid but I am working with no sleep...
Is it even possible to unlink a file that was created with the '>' sign?
example:
perl job.pl > output.txt
job.pl mails a file and then tries:
my $file = "output.txt"; unlink $file;
For the heck of it; I tried close STDOUT but still got the error
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unlink Permission Denied
by tachyon (Chancellor) on May 03, 2002 at 04:09 UTC | |
by rob_au (Abbot) on May 03, 2002 at 05:52 UTC | |
by tachyon (Chancellor) on May 03, 2002 at 06:02 UTC | |
by Marza (Vicar) on May 03, 2002 at 20:16 UTC | |
|
Re: Unlink Permission Denied
by Marza (Vicar) on May 03, 2002 at 02:49 UTC | |
by graff (Chancellor) on May 03, 2002 at 04:12 UTC | |
|
Re: Unlink Permission Denied
by emilford (Friar) on May 03, 2002 at 02:15 UTC | |
by Marza (Vicar) on May 03, 2002 at 02:30 UTC | |
|
Thanks everybody!
by Marza (Vicar) on May 03, 2002 at 04:33 UTC | |
|
Re: Unlink Permission Denied
by VSarkiss (Monsignor) on May 03, 2002 at 02:25 UTC | |
by Marza (Vicar) on May 03, 2002 at 02:33 UTC |