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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-11-26 17:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (172 votes), past polls