in reply to
Need help with unlink error
Not you question I know, but:
close $directory;
[download]
will fail as well.
$directory
is the name of the directory, not the directory handle. You probably want:
closedir(DIR);
[download]
and you could move that earlier in the code, after your
readdir
.
Comment on
Re: Need help with unlink error
Select
or
Download
Code
In Section
Seekers of Perl Wisdom