in reply to Re^2: Eval/package question
in thread Eval/package question

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;