in reply to mystery function & Odd number of elements in anonymous hash
Then func() returns an empty list. Perl flattens lists, so what you get is
my $hshref = { foo => bar => "baz" };
... which is a list of three elements, hence the warning. You will need to think long and hard about what the return value of func() is supposed to be, and what it should be instead when the original func() call returns an empty list.
|
|---|