Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to Get the Last Subdirectories

by pemungkah (Priest)
on Mar 12, 2010 at 00:50 UTC ( #828175=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [mcmahon@joe-desk ~]$ ls -R ./example/
    ./example/:
    file  nonempty_files_only  nonempty_has_dirs
    ...
    ./example/nonempty_has_dirs/one:
    
    ./example/nonempty_has_dirs/two:
    
  2. or download this
    sub dive {
      my($d) = shift;
    ...
    
    $d = './example';
    print join ", ", dive($d),"\n";
    
  3. or download this
    ./example/nonempty_files_only, ./example/nonempty_has_dirs/one, ./exam
    +ple/nonempty_has_dirs/two
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2014-07-31 02:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (244 votes), past polls