I have a unique requirement, in one of my MySql table i have a field called 'input_folder' and i have defined its value as '$ENV{INP_DIR}' and in my windows profile, i have defined this ENV variable and valu is set as "C:/tmp/setup". my idea is to read this field from SQL table and substitute to windows ENV variable. But when i read this from my perl script i get it as $ENV{INP_DIR} itself and NOT substituted to its true ENV value. is there a way to read the actual value?
i tried with
$t = $v->{input_folder};
$t2 = eval $t;
but it returns just blank. i tried it with
$t3 = "$t/xx" still did not work. any suggestion?
thanks for replies, i have number of fields which has similar values. so i wanted it to work this way. However Corion's tips was usefull and workable. while doing experiment i found a way. In mySQL table i have modified the value from $ENV{INP_DIR} to "$ENV{INP_DIR}"
double quotes included in value itself and it worked.