in reply to Re: Pushing a hashref into an array
in thread Pushing a hashref into an array

Thanks All, anon was right--it was a dumb scoping problem. And I'm red faced about the lack of quotes around HASH--I promise not to post questions again when I'm sleepy. Bloodnok: this is very cool:
foreach (@{ ref $hr eq q/HASH/ ? [ $hr ] : $hr })
I'd been wracking my brains for a way to do that as well :-)