This works. Thanks for your help.
Does this mean that before opening directory
I need always do chdir. I was looking in the docs - did not find anything about this.
Thanks again.
It looks that I found solution by adding chdir($dir) to the program, but still do not understand why without chdir
some files are recognized, while some are not.
Here is the content of the directory -
Volume in drive C has no label.
Volume Serial Number is A026-93C7
Directory of...
My perl program opens dos directory and tests all files
using -f. There are 5 files in the directory. Somehow the program recognizes only 3. For 2 others any file test operator does not return any value. Here is a code -
{
($dir,$title)=@_;
opendir (DIR,$dir) || die "cannot open: $!"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.