jrsmith has asked for the wisdom of the Perl Monks concerning the following question:
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"; }
|
|---|
| 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 |