Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^6: trouble taking reference of function

by kyle (Abbot)
on Mar 03, 2009 at 22:42 UTC ( [id://747927]=note: print w/replies, xml ) Need Help??


in reply to Re^5: trouble taking reference of function
in thread trouble taking reference of function

You could say that, but I think it's more accurate to say that the function doesn't receive any more than one element. The array in sin(@_) is evaluated in a scalar context. Its value in that context is the number of elements in the array, and that single value is given to sin.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found