in reply to Re^2: Invoke sub whose name is value of scalar
in thread Invoke sub whose name is value of scalar
This version also fixes a bug you had in your original code regarding contexts.sub go_through { my ($self, $node) = @_; return unless defined $node->{info}; my @info_nodes; while ( $node->{info} ne 'root' ) { push @info_nodes, $node->{info}; $node = $node->{parent}; } return \@info_nodes; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Invoke sub whose name is value of scalar
by citromatik (Curate) on Apr 14, 2008 at 15:16 UTC | |
by dragonchild (Archbishop) on Apr 14, 2008 at 15:23 UTC | |
by citromatik (Curate) on Apr 14, 2008 at 15:58 UTC | |
by dragonchild (Archbishop) on Apr 14, 2008 at 16:02 UTC | |
by citromatik (Curate) on Apr 14, 2008 at 16:27 UTC | |
| |
by Jenda (Abbot) on Apr 14, 2008 at 19:42 UTC |