Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 about the Monastery: (5)
As of 2015-04-27 21:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (511 votes), past polls