in reply to Bulk hash population order
One can even make it pretty with a simple prototyped function:
sub hpush(\%@) { my ($h,$k,$v) = (shift); $$h{$k} = $v while ($k, $v) = splice(@_, 0, 2); } # ... later my %bighash = ( A => 1, B => 2, C => 3 ); hpush %bighash, B => 3, D => 4;
Good Day,
Dean
|
|---|