We don't bite newbies here... much | |
PerlMonks |
Re(3): Find and Print Directory Namesby cjf (Parson) |
on Jul 07, 2002 at 17:29 UTC ( [id://179996]=note: print w/replies, xml ) | Need Help?? |
First off, Use strict warnings and diagnostics. It'll make debugging a lot easier. Secondly, try removing the finddir("$root$file"); from within the foreach loop. You're exiting the loop after the first iteration. Update: Oops. Read that wrong. Hang on a sec. Update 2:
That will return all directories in $config{home}$user{site_id} but not go into the sub directories. Is that what you're looking for?
In Section
Seekers of Perl Wisdom
|
|