in reply to Re^4: Invoke sub whose name is value of scalar
in thread Invoke sub whose name is value of scalar
my $root = {}; _create_node( $root, 'pp1', 'first' ); _create_node( $root->{pp1}, 'ppp1', 'second' ); # And so forth
You were forcing your code to use symbolic references. Intrinsically, it wasn't doing so. In other words, the code didn't look like it forced the use of symbolic references. It was only your usage of it that was forcing it to do so. And, by doing it my way, you will avoid some really nasty, hard-to-find bugs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Invoke sub whose name is value of scalar
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 dragonchild (Archbishop) on Apr 14, 2008 at 16:47 UTC | |
by Arunbear (Prior) on Apr 14, 2008 at 16:42 UTC | |
by Jenda (Abbot) on Apr 14, 2008 at 19:42 UTC |