in reply to Re^7: Array dereference in foreach()
in thread Array dereference in foreach()
However it is not special enough to work smoothly with dereferencing undef as hashref. This one throws exception.
my $a; foreach (keys %$a) { print "$_\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^9: Array dereference in foreach()
by choroba (Cardinal) on Nov 16, 2017 at 12:59 UTC | |
by pme (Monsignor) on Nov 16, 2017 at 13:03 UTC |