readdir gives not only the file names but also the directory names present inside your $handle.
open (IN, "$handle/$file") on a directory will give you an error of course ;-)
you will have to test $file for being a file before opening it.
In reply to Re^2: cant open files from a directory
by x-lours
in thread cant open files from a directory
by garny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |