my( $ref ) = @_; my %revmod; if( ref $ref ){ %revmod = %$ref; } ...
Or my %revmod = eval { %{ $_[0] } };
In reply to Re: Dereferencing %hash that does not exist. (conditional)
by Anonymous Monk
in thread Dereferencing %hash that does not exist.
by perldarren
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |