in reply to Re: cant open files from a directory
in thread cant open files from a directory
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: cant open files from a directory
by Anonymous Monk on Feb 01, 2014 at 05:31 UTC |