From: Keith Carter Date: 2008-01-24T14:17:16+09:00 Subject: Re: Help with eval Chirantan wrote: > It works! I am a ruby rookie so I dont know why this is so. In the first example, you are defining the variable inside of the block. In the second example, you've defined the variable outside of the block. evals are scoped as blocks, and so variables created in them are not available outside of the block. -- Posted via http://www.ruby-forum.com/.