Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
P is for Practical
 
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 surveying the Monastery: (10)
As of 2014-04-20 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls