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. > > -- > __
testing sub-directory useing perl
Hi, How do I use perl to test if dir1 is a sub directory of dir2?? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _