Re: Symbolic links and file tests in perl

2008-04-14 Thread Brian Dessent
Scott Webster Wood wrote: > I tried doing a if(-l $file) where $file was the name of a symbolically > linked directory in the current working directory and it returned a false. > Doing a (-d $file) returned true. I can't reproduce this: $ mkdir foo; ln -s foo bar $ perl -e 'print "yes\n" if

Symbolic links and file tests in perl

2008-04-14 Thread Scott Webster Wood
I tried doing a if(-l $file) where $file was the name of a symbolically linked directory in the current working directory and it returned a false. Doing a (-d $file) returned true. Is there any way to work around this and then retrieve the real path of a symbolically linked directory under cygw