From: Brian Candler Date: 2008-12-13T17:53:22+09:00 Subject: Re: Function def at end of scripts Or if you subscribe to the Camping school of application development: eval DATA.read say_hello __END__ def say_hello puts "hi" end Extra points if you run gsub transformations on DATA.read too. -- Posted via http://www.ruby-forum.com/.