in reply to Re^3: eval a reference to a my hash
in thread eval a reference to a my hash

It works because of the print statement. Take that out and it will fail. Thanks anyway.