Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Think about Loose Coupling
 
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 chilling in the Monastery: (11)
As of 2014-04-19 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (478 votes), past polls