Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 avoiding work at the Monastery: (12)
As of 2015-07-07 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (91 votes), past polls