Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Array Normalization of File::DirWalk

by Khen1950fx (Canon)
on Feb 23, 2007 at 10:15 UTC ( #601721=note: print w/ replies, xml ) Need Help??


in reply to Array Normalization of File::DirWalk

For depth 3, I tried this, using /usr/local/lib:

#!/usr/bin/perl use strict; use warnings; use diagnostics; use File::DirWalk; my $dir = '/usr/local/lib'; my $dw = new File::DirWalk; $dw->onDirEnter(sub { my ($dir) = @_; print "$dir\n"; return File::DirWalk::SUCCESS; }); $dw->setDepth(3); $dw->walk($dir);


Comment on Re: Array Normalization of File::DirWalk
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-09-22 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (182 votes), past polls