Re: testing sub-directory useing perl
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: shao@cia.edu.au |___/
> _____________________________________________________________________________
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
--
-----------------------------------------
Ralph Winslow rjw@nac.net
The IQ of the group is that of the member
whose IQ is lowest divided by the number
of members.
Reply to: