Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?
[choroba]: Google suggests Bytes::Random:: Secure, but it's so 2015
[Yaerox]: At least I believe it's safer then Math::Random:: Secure (2010) tho. Thanks.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2016-12-06 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (102 votes). Check out past polls.