in reply to recursion hell.

If you're building a tree structure you'll need to push on an array reference, otherwise you'll end up with a flat list e.g
my @sub_conns = &trace_sig_down_hier($vdb,$imod,$port,$full_path,$leve +l); ## note the \ which creates the reference push @connections, \@sub_conns;
Also, Data::Dumper is terribly useful when it comes to looking at your datastructures.
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: recursion hell.
by diarmuid (Beadle) on Aug 06, 2003 at 13:09 UTC
    thanks for that. I'll have a look at Data::Dumper. However I need to know if what I'm doing is the correct approach. Somhow when I call the function recursively it "forgets" to continue the outer loop.

    D