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 (Abbot)
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 scrutinizing the Monastery: (5)
As of 2014-09-15 05:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls