From: James Whittaker Date: 2006-03-21T23:48:00+09:00 Subject: Re: Problem with Why's Poignants guide code..help Alder Green wrote: > Any Python experience by any chance? :) > > In wordlist.rb you create a *local variable* code_words. When you > require wordlist.rb, locals variable get created, then destroyed. Only > constants (classes, modules) survive. So you can either store that > hash as a constant (inside a module/class), or (cleaner, more > sensible) store it in some sort of serial representation format, e.g. > Yaml. > > Alder Green Thanks, but no no Python experience! Bit of a flaw in the book then at only chapter 4!! If the code does not work as described. It seems quite sensible what i'm trying to do, don't quite understand your YAML format, but basically how can I store variables, hashes etc in an external file then call them. This book has been praised but has anyone really tried the code? -- Posted via http://www.ruby-forum.com/.