Perl Monk, Perl Meditation | |
PerlMonks |
Re: Is this directory a subdirectory of another directory?by mt2k (Hermit) |
on Mar 15, 2002 at 19:30 UTC ( [id://152063]=note: print w/replies, xml ) | Need Help?? |
Okay, in the end I used strat's line of code within a loop to test for each directory. I tried crazyinsomniac's code, which only printed out one filename in a directory not even included in the path. I probably used it wrong! So anyway, thanks a lot for your help (and that includes everyone that posted). I would post the code I now use, but it's quite long... And sorry about the use of HTML there... I noticed that it shrunk the size of the nodelets after I posted it. Update: Okay, I tried crazyinsomniac's code again, and it worked for the most part, but it still left valid directories out of the options, so I went back with strat's code with a small modification. Here is the code I use now:
In Section
Seekers of Perl Wisdom
|
|