in reply to Initializing Hash reference

Your example should be corrected like such:
%$err_info =( CMD => 'Command Execution Failed', STATUS => 'Status Check Failed', SUCCESS => 'Command Succeful upto', TIME => 'scalar localtime()', );
but this is indeed simpler:
$err_info ={ CMD => 'Command Execution Failed', STATUS => 'Status Check Failed', SUCCESS => 'Command Succeful upto', TIME => 'scalar localtime()', };