When Shao Zhang wrote, I replied:
> 
> Hi,
>     How do I use perl to test if dir1 is a sub directory of dir2??

There are lots of ways, but I'd most likely:

if(-d "dir1/dir2")
    { whatever;
    }
else { or_this; };
> 
>     Thanks.
> 
> Shao.
> 
> --
> ____________________________________________________________________________
> Shao Zhang - Running Debian 2.1  ___ _               _____
> Department of Communications    / __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _
> University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
> Sydney, Australia               |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
> Email: [EMAIL PROTECTED]                                                  
> |___/
> _____________________________________________________________________________
> 
> --
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

-- 
-----------------------------------------
Ralph Winslow                 [EMAIL PROTECTED]
The IQ of the group is that of the member
whose IQ is lowest  divided by the number
of members.

Reply via email to