RICHARD FERNANDEZ wrote:
> According to the docs, if you stat a symlink, you will get information
> for the target file, and lstat works on symlinks...
> 
> I'm confused. How do you determine if a file is a symlink to begin with?
> 
> TIA
> 
> richf
> 

perldoc -f -l

if (-l $file) {
  # file is a symlink
}

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to