in reply to setting envirnment variables from array.

Sorry monks, but I should have said that I need to set the name of the var to the var. Confusing, I now but I have a tone of variables that I would just like to iterate through. :) Normally I would go with a hash and extract each var individually.
$daemon = $config{daemon};
but what I want to do is iterate through and set them on the fly. So, instead of the above I would like loop and have the var become the actual variable name.

Replies are listed 'Best First'.
Re^2: setting envirnment variables from array.
by djohnston (Monk) on May 20, 2005 at 19:23 UTC
    I hesitate to post any code in support of something considered to be such bad form, but what I think you are asking can be done using soft references. Take note that this sort of thing is frowned upon, as there is almost always a better way to do accomplish the task.