On Tue, Jun 11, 2013 at 1:21 PM, Aristotle Pagaltzis <pagaltzis@gmx.de>wrote: > More importantly, given hash slices that *omit* non-existent keys, it is > much harder to get the opposite behaviour. I cannot even think of any > sensible way to do it as an expression within the same statement, only > if I accept multiple statements, by doing such as > > my %second = %first{qw/a c/}; > @first{qw/a c/} = @first{qw/a c/}; > Still two statements, but this is simpler: my %second; @second{qw/a c/} = @first{qw/a c/};Thread Previous | Thread Next