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

recurse-o-lister

by dann (Beadle)
on Apr 20, 2004 at 05:02 UTC ( [id://346546]=obfuscated: print w/replies, xml ) Need Help??

+ Quick hack, in boredom ( 5 )
   + Recursively lists files ( 7 )
      + and directories ( 5 )
use strict;t (($ARGV[0]?$ ARGV [0]:q-.-),0); sub t{ opendir(D,$_[0]);map{$ b= "$_[0]/$_";print' 'x$_[1] .(-d$b?q~*~:q:-:).qq# $_# .(-l$b?q[ -> ].readlink($ b):qq##). qq+\n+;t ($b,$_ [1]+3 )if-d$ b&&-r$ b&& ! -l $ b ;} grep { /^[^\.]/ }readdir(D);closedir(D);}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: obfuscated [id://346546]
Approved by teamster_jr
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-16 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found