my $x = $y || ''; #### $x ||= ''; #### if (defined $x) { reftype $x eq 'HASH' }