Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: listing all subdirectories of directory into file

by anazawa (Scribe)
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 exploiting the Monastery: (11)
As of 2014-11-28 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (200 votes), past polls