Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Prototypes allow overloading subs?

by Aristotle (Chancellor)
on Dec 08, 2002 at 13:30 UTC ( #218364=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Prototypes allow overloading subs?
in thread Prototypes allow overloading subs?

Perl is just too dynamic. The biggest obstacle is that you can often not know whether you're getting a list or scalar - much like in your example. It gets a whole lot worse when you say something like add(numbers($foo)) and numbers() can return anything from one invocation to the next.

Makeshifts last the longest.

  • Comment on Re^3: Prototypes allow overloading subs?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://218364]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-02-20 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (293 votes). Check out past polls.