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 chanting in the Monastery: (10)
As of 2014-12-29 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (188 votes), past polls