in reply to Re: Strange behaviour of interpreter when dereferencing an undefined value
in thread Strange behaviour of interpreter when dereferencing an undefined value
the expression %{ $a } isn't in lvalue context. Also autovivification doesn't appear only in lvalue context:perl -we'use strict; sub foo {}; my $a; foo( %{ $a } )'
perl -MData::Dumper -we'use strict; my $a; $a->{b}{c}; print Dumper $a +' $VAR1 = { 'b' => {} };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Strange behaviour of interpreter when dereferencing an undefined value
by ikegami (Patriarch) on Nov 04, 2014 at 03:38 UTC |