Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Text Based Perl Game

by GrandFather (Saint)
on Dec 27, 2013 at 04:31 UTC ( [id://1068475]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Text Based Perl Game
in thread Text Based Perl Game

Short version: Don't use prototypes.

Less short version: No, Really, Don't use prototypes.

Long version: Prototypes (almost always) don't do what you want or what you think. Most people who use prototypes frequently come from a C or C++ background and they have carried over their function declaration habits to Perl without noticing that there are almost none of the type checking benefits and several subtle traps. So, don't do that.

True laziness is hard work

Replies are listed 'Best First'.
Re^5: Text Based Perl Game
by Athanasius (Archbishop) on Dec 27, 2013 at 07:57 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1068475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-04-23 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found