in reply to Diff between file and directory

the following test will determine if the array element is a a directory in windows
if (-d $file)
make sure $file contains path as well as file/directory name. this will check if it is a readable file
if (-e $file)

Replies are listed 'Best First'.
Re: Re: Diff between file and directory
by allolex (Curate) on Aug 25, 2003 at 17:42 UTC

    the following test will determine if the array element is a a directory in windows

    I heard this works on all other platforms as well. ;)

    --
    Allolex