in reply to (Answered) How to force list context?

Well maybe not exactly your question, but you have always list context within inside @{[...]} even within double quotes interpolation.

Personally I find your code with implicit "ASCII to integer" conversion of $_ far too magic.

Assigning explicit vars like ($val,$key)=split doesn't take much more code and is self documenting.

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)