|
|
| Come for the quick hacks, stay for the epiphanies. | |
| PerlMonks |
Re: references and modulesby bwana147 (Pilgrim) |
| on Jul 23, 2001 at 09:13 UTC ( [id://98941]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||