Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 examining the Monastery: (12)
As of 2014-07-22 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (124 votes), past polls