From: Lee Jarvis Date: 2007-12-07T08:24:54+09:00 Subject: Re: Newbie ruby wonderment. Ruby, like Perl, reads the code line by line, the same as you write it.. So you need to define methods before you call them, (this is interpreted programming) puts foo def foo 'bar' end #=> undefined local variable or method 'foo' Regards, Lee -- Posted via http://www.ruby-forum.com/.