(I should have used $FileNumber rather than $first; sorry.)foreach my $first ( keys %( $hash1{$key} ) ) { $hash2{ $first }{NextNum} = $hash1{ $key }{ $first }{NextNum}; # etc. }
Beware of possible loss of data if you have duplicate NextNum values in %hash1.
In reply to Re: Modifying order of a hash
by apl
in thread Modifying order of a hash
by monaghan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |