Basilides has asked for the wisdom of the Perl Monks concerning the following question:
sub display { my $self = shift; $self->displaynames($self->{root}); } sub displaynames { my $self = shift; $head = shift; print $head->{Val}, " "; if (defined ($head->{LRef})) { $self->displaynames($head->{LRef}); } print $head->{Val}, "\n"; if (defined ($head->{RRef})) { $self->displaynames($head->{RRef}); } }
edited: Mon Jun 24 14:42:19 2002 by jeffa - title change
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: recursion
by merlyn (Sage) on Jun 23, 2002 at 15:48 UTC | |
|
Re: recursion
by Basilides (Friar) on Jun 23, 2002 at 15:26 UTC | |
|
Re: recursion
by Basilides (Friar) on Jun 23, 2002 at 15:45 UTC | |
by bronto (Priest) on Jun 23, 2002 at 20:07 UTC | |
|
Re: recursion
by jepri (Parson) on Jun 23, 2002 at 15:36 UTC | |
by Aristotle (Chancellor) on Jun 23, 2002 at 16:56 UTC | |
by jepri (Parson) on Jun 24, 2002 at 01:07 UTC | |
by Aristotle (Chancellor) on Jun 24, 2002 at 01:30 UTC |