Your config file should've read

$x=23

Since x should be a global variable.  You can use @@x alternatively but I
don't recommend this in your case.

    robert

"Bj÷˛n Lindstr÷Ý" <bkhl / privat.utfors.se> schrieb im Newsbeitrag
news:20030219065519.GK11819 / lucien.dreaming...
> Jos Backus <jos / catnook.com> [20030219 07:32]:
> > load "file"
> >
> > ?
>
> OK, say that config.rb is a file containing the line:
> x = 23
>
> and in my script I do:
>
> load './config.rb'
> puts x
>
> this is what I get:
>
> /script.rb:3: undefined local variable or method `x' for
#<Object:0x401d1ce0> (NameError)
>
> --
> Bj÷˛n Lindstr÷Ý <bkhl / privat.utfors.se>   hem.fyristorg.com/bkhl/
> Addr: Ramsta Svista, SE-755 91 Uppsala Ph: 018-398248/073-6171268
> Listening to: Tristania: Beyond the Veil (Beyond the Veil)
>