Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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
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
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 scrutinizing the Monastery: (15)
As of 2015-07-31 17:49 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 (279 votes), past polls