Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Depth Listing in Directory Traversal

by hbo (Monk)
on Jul 20, 2004 at 04:36 UTC ( #375796=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub next {
        my $self = shift;
    ...
                my $line = shift @{ $self->{output} };
                return $line;
            }
    
  2. or download this
            if ( ! @{ $self->{dirs} } ) {
                return;
            }
            my $dir = shift @{ $self->{dirs} };
            if (-d $dir) {
    
  3. or download this
              if ($oldir){
                $self->{level} += 
                    ($dir=~tr!/!/!) - ($olddir=~tr!/!/!);
              }
              $olddir=$dir;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2015-07-31 21:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (282 votes), past polls