...I had initially written @{$exceptions{$user}}, which was short and sweet. But that fails if $user isn't a key of %exceptions. It seems overly complicated and verbose to have to check to see if $exceptions{$user} is defined before treating it as an array reference.defined($exceptions{$user}) ? (join " ",@{$exceptions{$user}} : ""
In reply to overcoming undef as Array ref by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |