Hi. You are getting permission denied, because you are attempting to open a directory as a file
Your readdir is pulling in all the entries in your /perl/ass folder including subdirectories. You then attempt to open one of those subdirectories as a file.
You might want to use the -d operator to test if $currentlog is a directory or not before attempting to open it.
In reply to Re: Perl Permissions
by bingos
in thread Perl Permissions
by blundell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |