PDA

View Full Version : read several DIRHandles from within same parent dir


bazz
11-05-2005, 05:41 PM
Looking for advice on the correct module to use.

Having got working a flyout menu from the dirhandles of 1 dir, this time, I need to do the same but where the DIRHANDLES are contained in several 'sibling dirs'

Parent dir - PARENT
sibling dirs - Accomm Restaurants Attractions Events Venues
sub-sibling dirs - The individual clients' dirs.

Which module is best for drilling down through the three dirs and for then, building a huge array or series of arrays.

Whilst I can nearly do this, with several subs to form the suckerfish menu, I found that the repeated variables also printed repeatedly. For example, If there was more than one hotel in a specific town, the name of the town would repeat for each hotel where it should only show up once. This busts the menu completely.

If this is something for which you may need payment, then instead of not replying, plz pm me. (hopefully I haven't busted the forum rules).

Bazz

FishMonger
11-05-2005, 06:12 PM
Looking for advice on the correct module to use.You want a module? I'm surprised, you normally want to do it yourself, the hard way. :eek: Don't you love sarcasm! :D

Which module is best for drilling down through the three dirs and for then, building a huge array or series of arrays.Sounds like you're needing the File::Find module or one of its variants.
http://search.cpan.org/~nwclark/perl-5.8.7/lib/File/Find.pm
http://search.cpan.org/search?query=file%3A%3Afind&mode=all

bazz
11-05-2005, 06:25 PM
:D

Thanks FishMonger.