- or download this
use strict;
my $f;
($f = {})->{foo} = 'bar';
my %new;
%new = %{undef()}; # not okay
- or download this
$\ = $/;
$h = '';
...
HASH(0x885d7a4)
HASH(0x885d7a4)
Can't use an undefined value as a symbol reference at - line 11.
- or download this
${''}{foo} = 'bar';
$h = '';
...
print "$_ => $new{$_}\n" for keys %new;
__END__
foo => bar