This prints out "Command1 = ".%alerts = ('command1' => 'Command1 = $val1'); $val1 = 'foobar'; print "eval {$alerts{command1}}";
In reply to Re: Re: possible to evaluate scalars stored in a string?
by emilford
in thread possible to evaluate scalars stored in a string?
by emilford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |