in reply to Re^2: "do" what?
in thread "do" what?

From a security perspective, that's just as bad. Someone with write access to the config file could change it to:

system("insert malicious command here"); { username => 'zxcvb', password => 'zzzzz', }

If you don't need to trust the keeper of the config file to refrain from malicious or even dumb stuff, why expose yourself to the risk.

Check out YAML for another way to represent complex data structures in config files without needing eval (or "do" in this case).

Replies are listed 'Best First'.
Re^4: "do" what?
by Aristotle (Chancellor) on Oct 21, 2002 at 23:50 UTC
    If that's an issue, use Safe;

    Makeshifts last the longest.