Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
[Discipulus]: use Dynamite; Lady_Aleena
[Lady_Aleena]: That's the problem. I have 29 scripts, 3 modules, and gads of data I am thinking about deleting out of anger over an API change that made all of those things worthless.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2017-05-25 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?