Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Text Based Perl Game

by VincentK (Beadle)
on Dec 27, 2013 at 01:07 UTC ( [id://1068462]=note: print w/replies, xml ) Need Help??


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

I appreciate the feedback. Thanks.

I will keep item no. one in mind going forward. As for item no. two, I had a feeling someone was going to point that out. I am so used to having forward declarations, that it kind of looks wrong to me if I don't have them in place. I do understand your point though.

Thanks again.

Replies are listed 'Best First'.
Re^4: Text Based Perl Game
by GrandFather (Saint) on Dec 27, 2013 at 04:31 UTC

    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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2024-04-18 16:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found