"Ilmari Heikkinen" <kig / misfiring.net> schrieb im Newsbeitrag
news:1112805304.14517.5.camel / jugend...
> ke, 2005-04-06 kello 18:49, Robert Klemme kirjoitti:
> > "John Elrick" <john.elrick / gmail.com> schrieb im Newsbeitrag
> > news:1112801469.561320.13590 / z14g2000cwz.googlegroups.com...
> > > my_message = 'Hello World'
> > > my_template =
> > >
File.readlines('my_template_file.txt').HOW-CAN-I-FORCE-INTERPOLATION???
> > > puts my_template <== The message is Hello World
> > >
> > >
> > > Anyone have any ideas?  Or am I missing something blatantly obvious?
> >
> > How about:
> >
> > eval "%Q{" + File.read('my_template_file.txt') + "}"
> >
>
> echo "}; 10.times{ puts 'do not trust external data'" > \
>   my_template_file.txt
>
> Cheers :)

Hey, you just spoiled my evil - err - eval plan to take over his system!
:-)

    robert