my $revmod = %{ $_[0] // {} };
Update: It should work with plain ||, too, in the older versions. Just make sure you never call it with 0 as the argument.
In reply to Re: Dereferencing %hash that does not exist.
by choroba
in thread Dereferencing %hash that does not exist.
by perldarren
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |