Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2018-02-21 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (287 votes). Check out past polls.

    Notices?