Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by choroba (Canon)
on Feb 12, 2013 at 09:48 UTC ( #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
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: prototypes parens/parenthesis hash initialization/declaration / Too many arguments for / $$
Download Code
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
Node Status?
node history
Node Type: note [id://1018333]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-07-06 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls