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

How to Get the Last Subdirectories

by bichonfrise74 (Vicar)
on Mar 11, 2010 at 20:54 UTC ( #828135=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    use File::Find;
    
    find( sub { print "$File::Find::name \n" if -d }, '/tmp/a' );
    
  2. or download this
    /tmp/a
    /tmp/a/b
    ...
    /tmp/a/b/d/g/h
    /tmp/a/b/d/g/i
    /tmp/a/b/k
    
  3. or download this
    /tmp/a/b/c/e
    /tmp/a/b/d/g/h
    /tmp/a/b/d/g/i
    /tmp/a/b/k
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://828135]
Approved by toolic
Front-paged by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-08-21 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (128 votes), past polls