Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Listing old files

by anonymized user 468275 (Curate)
on May 09, 2011 at 14:23 UTC ( [id://903769]=note: print w/replies, xml ) Need Help??


in reply to Listing old files

Taking the requirement as stated literally (not using File::Find - it didn't earn its bread here)
dir ( @ARGV ); sub dir { local $_; for my $d ( @_ ){ local $_; print "\nDirectory listing of $d:\n\n"; my @file = glob "$d/*"; for my $f ( @file ) { print $f . "\n"; } for my $f ( grep (( -d $_ ), @file )) { dir( $f ); } } }

One world, one people

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2024-03-28 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found