Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: listing all subdirectories of directory into file

by anazawa (Beadle)
on May 26, 2012 at 02:01 UTC ( #972556=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Path::Class qw/dir/;
    my $dir = dir( 'basedir' ); # platform-neutral syntax
    
  2. or download this
    my @plain_files;
    $dir->recurse(callback => sub {
    ...
        return if $file->is_dir;
        push @plain_files, $file;
    });
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://972556]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2014-09-22 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (178 votes), past polls