in reply to Coercing an array into a hash
There you're creating an anonymous hash, populating it with the list and dereferencing the result, simple as that!sub remap_anon { return {qw( THIS THAT BLACK WHITE TALL SHORT )}->{$_[0]}; }
_________
broquaint
|
|---|