Robert Klemme wrote:

>
>text = "some text coming from somewhere"
>begin
>   eval "def foo; #{text} ; end"
>rescue SyntaxError => e
>   # do something when it has a syntax error
>end
>
>    robert
>  
>

Hey, that's clever.  I'll have to remember that trick. :)

-- 
Jamis Buck
jgb3 / email.byu.edu

ruby -h | ruby -e 'a=[];readlines.join.scan(/-(.)\[e|Kk(\S*)|le.l(..)e|#!(\S*)/) {|r| a << r.compact.first };puts "\n>#{a.join(%q/ /)}<\n\n"'