instead of:my ($subid, @children); while (($subid) = $children->fetchrow_array) { push @children, $subid; } for $subid (@children) { walktree ($subid); }
while(my ($subid) = $children->fetchrow_array) { walktree($subid); }
In reply to Re: walking a tree
by gamache
in thread walking a tree
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |