Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and so the hash turns out like this:x ++$x y int(((log10 ($x/100 + 1)) + 3)*100) z $x+$y+$z
Now, I am getting values for the variable through a proprietary communication protocol (which is,btw, the real complicated part of that program, but it's not relevant now).$function_hash{"x"}="++$x"; $function_hash{"y"}="int(((log10 ($x/100 + 1)) + 3)*100)"; $function_hash{"z"}="$x+$y+$z";
It may or may not contain all the variables I have functions for.$value_hash{"x"} = 10; $value_hash{"z"} = 30;
since then the functions in the configuration will need to be written differently or go through some parsing I don't want to do...$Alias::AttrPrefix = "main::";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A question about Alias module and use strict
by blakem (Monsignor) on May 15, 2002 at 05:20 UTC | |
|
Re: A question about Alias module and use strict
by rinceWind (Monsignor) on May 15, 2002 at 09:54 UTC |