Daniel Staal wrote: > > --As of Thursday, February 19, 2004 6:31 PM -0500, Joel is alleged to have > said: > > > Here it is. Okay so it isn't tommorow. I shortened it a bit, but its the > > same really. > > --As for the rest, it is mine. > > Here's a first approximation of a rewrite. ;-) (Major problem: it always > asks what you want to do twice...) > > This version keeps track of the state of the game, and uses that to guide > the flow. Note that I actually did put commands in a variable... > > However, now each location you can go to is entirely independent of any > other. > > I'm sure this can be simplified. It's just the first treatment I thought > of.
Hi Daniel. I haven't looked at your code, but I don't think a rewrite is in the spirit of helping beginners at Perl. It may occasionally be the best answer, but I suspect you're simply enjoying yourself here ;) I wonder what others think? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>