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 imbibing at the Monastery: (7)
As of 2014-12-21 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (107 votes), past polls