Include the reason of error by use of $! variable ...
open ... or die "Death is here because: $!.";
Mind that readdir gives a file name below the directory being read from (relative path). You may need to supply the parent directory as appropriate to form correct path of file to be (found &) opened.
In reply to Re: cant open files from a directory
by parv
in thread cant open files from a directory
by garny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |