Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: references and modules

by Cybercosis (Monk)
on Jul 23, 2001 at 13:15 UTC ( [id://98943]=note: print w/replies, xml ) Need Help??


in reply to references and modules

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://98943]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-20 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found