Robert wrote:
On 3/1/05 9:18 AM, in article [EMAIL PROTECTED], "JupiterHost.Net" <[EMAIL PROTECTED]> wrote:
perldoc -f unlink
Note: "unlink" will not delete directories unless you are superuser and the -U flag is supplied to Perl.
Have you actually done that? Normally, I do go by perldoc but in this case,
Yes, that is where I got the info about removing a directpry which is what you asked about.
Not so, I want to delete the file IN the directory using unlink. :-)
Ah so you do :)
this part is what threw me:
"I have tried a few things to pass the directory to unlink without success"
what you need to do is check for errors:
# assuming $dir ends with a slash:
unlink "$dir$file" or die $!;
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>