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

Re: Recursive Directory print

by zentara (Archbishop)
on Mar 06, 2014 at 15:37 UTC ( [id://1077244]=note: print w/replies, xml ) Need Help??


in reply to Recursive Directory print

File::Find works well for this too.
#!/usr/bin/perl -w use File::Find; use strict; my $directory= "."; find(\&files, $directory); sub files { if( -d ){ print "Directory $File::Find::name\n"; }else { print " $File::Find::name\n"; } }

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

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

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

    No recent polls found