What module would be ideal for getting a recursive listing into an array
or hash?

I was looking at IO::All????

 

 

$io = io('my/directory/');                  # Create new directory
object

    @contents = $io->all;                       # Get all contents of
dir

    @contents = @$io;                           # Directory as an array

    @contents = values %$io;                    # Directory as a hash

    push @contents, $subdir                     # One at a time

      while $subdir = $io->next;

 

thank you

derek

 

 

Derek Bellner Smith

Unix Systems Engineer

Cardinal Health Dublin, Ohio

614-757-5000 Main

614-757-8075 Direct

614-757-6889 Fax

<mailto:[EMAIL PROTECTED]>  

 


_________________________________________________

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.

Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands - Norsk 
- Portuguese - Svenska: www.cardinalhealth.com/legal/email

Reply via email to