in reply to Slicing a hashref

If $new and $old are hashrefs, then you can still do the slice as follows:
@$old{keys %$new} = values %$new;
Just remember that the $ is part of the name of the hash, and it should make sense. :-)