will fail as well. $directory is the name of the directory, not the directory handle. You probably want:close $directory;
and you could move that earlier in the code, after your readdir.closedir(DIR);
In reply to Re: Need help with unlink error
by cdarke
in thread Need help with unlink error
by sowais
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |