Re: testing on symlinks

2001-06-27 Thread Jeff 'japhy' Pinyan
On Jun 27, [EMAIL PROTECTED] said: >is there a flag that will test to see if a file is a symlink? i am only >finding tests for directory, perms and such. Yes, it's the -l test. if (-l $foo) { # symbolic link print "$foo points to ", readlink($foo), "\n"; } -- Jeff "japhy" Pinyan

testing on symlinks

2001-06-27 Thread charles
is there a flag that will test to see if a file is a symlink? i am only finding tests for directory, perms and such. thanks -charles