Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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

Comment on Re: Text Based Perl Game
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-11-25 23:41 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (693 votes), past polls