in reply to Undef Hash/Scalar Problem
Chomatic is probably correct, you are not creating the data you think you are. To see what the data structure actually is use Data::Dumper or YAML to print it out.
oruse DATA::Dumper; ... print Dumper \@emp;
use YAML; ... print Dump \@emp;
|
|---|