* Leon Timmermans (fawaka@gmail.com) [130611 10:53]: > my %first = (a => 1, b => 2); > my %second = %first{qw/a c/}; > > Should %second now contain «c => undef», not no c at all? I think I'm > currently leaning towards the latter, it seems like the more useful > behavior to me. Do we need this compact syntax, or can we get my %second = slice %first, qw/a c/; Love to have it in code, maybe in List::Util. (there already is a Hash::Slice) And I still love to have a push %grow, @pairs; # or merge $grow, @pairs; -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.netThread Previous | Thread Next