I have a generic configuration in an Excel-file, and move it to several hashes by creating the commands as strings and eval-ing them.
As others have mentioned, stringy eval is often not a good idea. Especially when working with hashes, what's wrong with the following?
our %items; my $item = '3'; my $key = 'Value'; my $value = 2; $items{$item}{$key} = $value;
In reply to Re^3: Eval/package question
by haukex
in thread Eval/package question
by Ratazong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |