Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
go ahead... be a heretic
 
PerlMonks  

Re: Text Based Perl Game

by GrandFather (Cardinal)
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-04-20 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls