Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: prototypes parens/parenthesis hash initialization/declaration / Too many arguments for / $$

by choroba (Cardinal)
on Feb 12, 2013 at 09:48 UTC ( [id://1018333]=note: print w/replies, xml ) Need Help??


in reply to prototypes parens/parenthesis hash initialization/declaration / Too many arguments for / $$

Another reason why people should not use prototypes. They do not do what you think. See Are prototypes evil?.

Update: BTW, the mentioned behaviour is normal:

$ perl -e 'print atan2 1, 2, 3' Too many arguments for atan2 at -e line 1, at EOF
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: prototypes parens/parenthesis hash initialization/declaration / Too many arguments for / $$
by Anonymous Monk on Feb 12, 2013 at 09:52 UTC

    Another reason why people should not use prototypes. They do not do what you think. See Are prototypes evil?

    Oh, context coersion gone amuch, icky

    I guess if that worked there wouldn't be a need for Devel::Declare and the like

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-19 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found