There's more than one way to do things | |
PerlMonks |
Re: references and modulesby bwana147 (Pilgrim) |
on Jul 23, 2001 at 13:13 UTC ( [id://98941]=note: print w/replies, xml ) | Need Help?? |
my $node = @_; $root is a scalar, so you evaluate @_ in scalar context, which yields the number of elements in @_, not its first element. Here are a couple of ways of doing it:
UPDATE: D'oh! I wrote my whole reply with $root whereas the problem is with $node. Fixed this. --bwana147
In Section
Seekers of Perl Wisdom
|
|