Chris Game <chrisgame / example.net> writes:

> Christian Neukirchen wrote:
>
>> echo "test = 12; BEGIN { p $SAFE }" > data.rb
>
> So what's this BEGIN {..} stuff do then?

It gets executed before the $SAFE = 4 line that is getting prepended.
If there is malicious code in BEGIN {}, you lose.

> Chris Game
-- 
Christian Neukirchen  <chneukirchen / gmail.com>  http://chneukirchen.org