in reply to cant open files from a directory
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.
|
|---|