The stupid question is the question not asked | |
PerlMonks |
Re: references and modulesby Cybercosis (Monk) |
on Jul 23, 2001 at 13:15 UTC ( [id://98943]=note: print w/replies, xml ) | Need Help?? |
Your problem is with the my $node = @_;. What is happening is that you're telling perl to interpret @_ as a scalar, which will give you the number of elements in the list (1, in this case). To force list context, do this: my($node) = @_; ~Cybercosis nemo accipere quod non merere
In Section
Seekers of Perl Wisdom
|
|