Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: Unrolling recursion

by broquaint (Abbot)
on Mar 14, 2002 at 15:47 UTC ( #151708=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @stack = ".";
    while(my $cd = pop @stack) {
    ...
            push @stack, "$cd/$_" if -d "$cd/$_";
        }
    }
    
  2. or download this
    &traverse(".");
    sub traverse {
    ...
            &traverse("$dir/$_") if -d "$dir/$_";
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2018-10-22 18:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (121 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!