my %hash = ( a => "abcd1234", b=> "abcd5678"); #### my $prefix = "abcd"; my %hash = ( a=> $prefix . "1234", b => $prefix . "5678");