in reply to Re^3: Pushing hash ref onto array ref
in thread Pushing hash ref onto array ref

Of course, that all requires a sufficiently new version of Perl. For instance, I can't use that for $work where I'm constrained to 5.16; for personal code, where I'm using the latest Perl (currently 5.32) that's not an issue.

It didn't occur to me that they both worked because I am using an old version of Perl v5.16.3 on the server. Because I hadn't made the connection with versioning, I didn't think to try it locally on v5.32.1...