|< 1 2 >| | 19 Einträge, 2 Seiten |
1
2
3
4
5
%hash1 = (key1 => 'value1');
%hash2 = ('age1 => 'value3');
$hash1{$_} = $hash2{$_} for keys %hash2;
%target = (%source1, %source2);
@hash1{keys %hash2} = values %hash2
@hash1{keys %hash2} = values %hash2
%hash2 = split("\0", join("\0", (join("\0", %hash1), join("\0", %hash2))));
%hash1 = ( %hash1, %hash2 );
QuoteThe keys are returned in an apparently random order. The
actual random order is subject to change in future versions of
perl, but it is guaranteed to be the same order as either the
"values" or "each" function produces (given that the hash has
not been modified).
|< 1 2 >| | 19 Einträge, 2 Seiten |