From: Gavin Sinclair Date: 2002-09-30T01:12:44+09:00 Subject: Re: How to load vars from users' app.conf (quite long) From: "gabriele renzi" > Hi gurus, > > I'm writing a simple app that needs to read a configuration file in > the common unix format > > #that is a comment > var_name=var > > Well, the question is : what's the better way to load those global > variables? > i thought 5 ways: > [......] I'd suggest using eval in this case. It seems quite correct to do so; just use RE to ensure the correctness of the format so it can't do any harm. If you want to be sure, put it in a sandbox (a thread where $SAFE=6) during evaluation. I'm not entirely sure if global variables are contained within threads though. Gavin