in reply to Searching Sub Dir for Files

When you run through the results from "opendir" you can perform this:
lets say your path of the directory you are searching is:
/home/user/searchdir
then you can use the following "if" statement in your loop:
if(-d "/home/user/searchdir/$dir")

That statement will tell you whether its a directory. Hope that helps.....

Replies are listed 'Best First'.
Re^2: Searching Sub Dir for Files
by Fuism (Beadle) on Jun 01, 2005 at 19:10 UTC
    Cool, that will help alot. I would still need to know how you would write something similar to File:Find if you cant use the module. Im guessing this wouldnt be something that is fairly easy to write?!? Thanks again all... Fue
        Would I be able to install it on my home_dir even though I dont have SA permissions? IS the install on Unix hard to do? Thanks... Fue