in reply to Multiple values per key in a hash
in principle you cannot assign multiple values to one key in a hashtable, because its a key -> value construct. but if the value is a reference, i.e. to a hashref, you can bypass this restriction. note that all values must be scalars or references, not arrays or hashtables.$uniq{$file} = { 'suffix1' => $foo, 'suffix2' => $bar };
|
|---|