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 (Chancellor)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-02-27 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (376 votes). Check out past polls.