Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://601721]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2017-02-25 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (365 votes). Check out past polls.