in reply to How do I use hashref slices?

The syntax for slicing in Perl is very, very simple:
@{EXPRESSION} {LIST}
(or with [LIST] if you're slicing an array.) EXPRESSION is an expression (or block) which evaluates to a reference to a hash (or array). As a special case, the EXPRESSION may be an identifier too. If the EXPRESSION is simple, one may leave the braces off.

This explains how the presented solutions work.

Abigail