jrsmith has asked for the wisdom of the Perl Monks concerning the following question:
i have another problem.. i am using -d to test whether it is a directory or not but it is telling me that all my directories are not directories. the only directories it will recognize as directories are NOT directories, and these are the . and .. used to navigate to previous dirs in win32. this is what i get when i run the script:
JR
here is the filetest section of my script:. is a directory. .. is a directory. Cannot determine filetype of digsol.
are there any known problems with -d and win32? i have looked around here and other sites and haven't seen any similar problems, maybe i'm just doing something wrong? TIA for any insight you can provideif (-f $i) { print OUTPUT "$i is a file.\n"; } elsif (-d $i) { print OUTPUT "$i is a directory.\n"; } else { print OUTPUT "Cannot determine what $i is.\n"; }
JR
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: another directory question
by jrsmith (Pilgrim) on Apr 28, 2000 at 17:39 UTC | |
by BBQ (Curate) on May 01, 2000 at 12:19 UTC |
Back to
Seekers of Perl Wisdom