in reply to overcoming undef as Array ref

@{$exceptions{$user}||[]}
But I suspect that code occurs in a larger block that could stand to have an if ( exists $exceptions{$user} ) or similar.

Replies are listed 'Best First'.
Re^2: overcoming undef as Array ref
by Anonymous Monk on Mar 29, 2007 at 22:34 UTC
    @{$exceptions{$user}||[]}
    Ah, that looks like a better answer.
    But I suspect...
    Your suspicion detection algorithm is faulty. That expression is returned from a subroutine. No larger context.