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.

use DATA::Dumper; ... print Dumper \@emp;
or
use YAML; ... print Dump \@emp;