Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Daft text adventure project

by Masem (Monsignor)
on May 29, 2001 at 17:00 UTC ( #83910=note: print w/replies, xml ) Need Help??


in reply to Daft text adventure project

As per handling the 'back' data, I'm encountering a similar problem, and I think what I'll do is create an array of hashes. Each 'page' would write a hash of settings, and push that onto the array. Subsequent pages create new hashes which are pushed onto the back of the array. To determine the value of a variable at any time, run through the array looking for a given key in the hashes, and return the last instance found. To go back, simply pop off the last hashref from the array.


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2020-11-27 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?