Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to do addition/multiplication with in the hash
my %g_tun = qw ( R1 100*32+1 R2 1 R3 100*32+1 ); print "G is $g_tun{R1}\n";
Output is this. GRE is 100*32+1 Is there a way to do the expression with in the hash value itself
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Expression inside hash
by 1nickt (Canon) on Apr 03, 2016 at 18:23 UTC | |
by Anonymous Monk on Apr 04, 2016 at 05:39 UTC | |
|
Re: Expression inside hash
by Athanasius (Archbishop) on Apr 04, 2016 at 03:47 UTC | |
by Anonymous Monk on Apr 04, 2016 at 03:52 UTC | |
by Anonymous Monk on Apr 10, 2016 at 18:14 UTC | |
by beech (Parson) on May 04, 2016 at 07:55 UTC |