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

You can use a hash slice with only one key:
@h{ /\w$/g } += $_ while <DATA>;

But I find it quite ugly. What about split?

$h{ (split)[1] } += $_ while <DATA>;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: How to force list context?
by rsFalse (Chaplain) on Dec 08, 2014 at 11:19 UTC
    Thanks!