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()', };
In reply to Re: Initializing Hash reference
by jwkrahn
in thread Initializing Hash reference
by Sun751
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |