Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Alternative for a directory builder

by Eliya (Vicar)
on Feb 22, 2011 at 18:50 UTC ( #889655=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $_=$a;  say while s|[^/]+/*$||;
    
    ...
    /aaaa/bbbb/
    /aaaa/
    /
    
  2. or download this
    my @dirs;
    my $_=$a;  push @dirs, $_ while s|[^/]+/*$||;
    ...
    /aaaa/bbbb/
    /aaaa/bbbb/cccc/
    /aaaa/bbbb/cccc/dddd/
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2015-05-23 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (467 votes), past polls