in reply to Initializing Hash reference

You need to use an anonymous hash for the assignment:

my $err_info = { CMD => 'Command Execution Failed', STATUS => 'Status Check Failed', SUCCESS => 'Command Succeful upto', TIME => 'scalar localtime()', };