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;
[download]
Just remember that the $ is part of the name of the hash, and it should make sense. :-)
Comment on
Re (tilly) 1: Slicing a hashref
Download
Code
In Section
Seekers of Perl Wisdom