$b="blah"; $hasharr{$rephead}=$b; #but i think i am accessing the array rather than the key. #### $hasharr{$newkey} = $hasharr{$rephead}; delete $hasharr{$rephead};