Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Get useful info about a directory tree

by graff (Chancellor)
on Jan 25, 2011 at 09:25 UTC ( #884080=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
        find( sub { if ( ! -l and -f _ ) { $counter++; print $conf "$File:
    +:Find::name\n" } }, $ARGV[0] );
        print " $counter\r";
    }
    
  2. or download this
    
    Benchmark: timing 30 iterations of 
    ...
     29485
     __ File::Find module:
     20 wallclock secs ( 8.17 usr +  7.32 sys = 15.49 CPU) @  1.94/s (n=30
    +)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-07-31 10:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls