Hi All,
I need to replace a hash key! (Just key! not the value!!)
Any idea to do this in one line guys?
EX:
Given Hash:
my %myhash = ( "kay1" => "value1", "kay2" => "value2", "key3" => "value3" );
Result Hash:
%myhash = ( "rep_key1" = > "value1", "kay2" => "value2", "key3" => "value3");
I need to replace a hash key! (Just key! not the value!!)
Any idea to do this in one line guys?
EX:
Given Hash:
my %myhash = ( "kay1" => "value1", "kay2" => "value2", "key3" => "value3" );
Result Hash:
%myhash = ( "rep_key1" = > "value1", "kay2" => "value2", "key3" => "value3");