Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Get useful info about a directory tree

by graff (Chancellor)
on Jan 25, 2011 at 09:25 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://884080]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-03-28 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found