use strict; my $hash = {'MONTH' => 'January'}; print $hash->{MONTH} . "\n"; my $hashInitStr = "{'MONTH' => 'January'}"; # This would come from a file my $hash1 = eval $hashInitStr; print $hash1->{MONTH} . "\n"