Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Text Based Perl Game

by GrandFather (Sage)
on Dec 18, 2013 at 03:41 UTC ( #1067583=note: print w/replies, xml ) Need Help??


in reply to Text Based Perl Game

There are three places where you:

if (xxx = yyy) {

which is not to be what you want. You have correctly used == elsewhere so you know about the difference between equality (==) and assignment (=) operators. The error is particularly bad because you get warnings during game start up that tell you about the problem!

Your 'main' sub contains a whole bunch of code that will never execute because mainMenu never returns.

True laziness is hard work

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1067583]
help
Chatterbox?
[jedikaiti]: Martian Shiney!

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2017-07-21 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (326 votes). Check out past polls.