in reply to Re: refs and hashes
in thread refs and hashes

push @entities, \%{$1};

This is not desirable, because this uses a soft reference, which is a (generally) "Bad Thing"(tm), for a host of reasons.

Best is to use a lexically-scoped hash or a HoHoH's (like the poster has ended up doing).

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.