How to: Take a slice of a hashref or arrayref
From xoa
From http://www.perlmonks.org/?node_id=80399
@slice = @{$array_ref}[ @idx ];
@slice = @{$hash_ref}{ @keys };
From http://www.perlmonks.org/?node_id=80399
@slice = @{$array_ref}[ @idx ];
@slice = @{$hash_ref}{ @keys };