1)
  if (-d $DIR_NAME) {
     .... directory exists
   };

2)
if((lstat($DIR_NAME))[1] & 0040000) {
.... directory exists and it is the real directory (not the symbolic link)
}else{
... No such directory or it is symbolic link
};


Carlos Mantero wrote:

Hi all,

I'm a begginer in Perl and other programming languages. I want to verify
that a directory exists, but I don't know the way tho do it.

Regards.




--
Vladimir D Belousov
HiTech solutions for business
http://businessreklama.ru


-- 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