Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: how to get the all the subdirectories path from the directory

by gube (Parson)
on Mar 09, 2006 at 07:48 UTC ( #535343=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use File::Find;
    find(\&file_names, "/home/gube/");
    sub file_names {
    print "$File::Find::name\n" if(-f $File::Find::name);
    }
    
  2. or download this
    use File::Find;
    find(\&dir_names, "/home/gube/");
    sub dir_names {
     print "$File::Find::dir\n" if(-f $File::Find::dir,'/');
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-10-20 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (74 votes), past polls