a function returning nothing (not undef) in list context;
I don't get this point. I take it to mean the assignment of an empty list to a hash, but none of the circumstances that I can think of that involve such an assignment elicit any warning, nor should they IMHO: an empty hash is a valid hash.
Can you expand a bit on this point?c:\@Work\Perl\monks>perl -wMstrict -le "my %hash; my %hasi = (); my %hasj = empty_list(); ;; print scalar keys %hasj; ;; sub empty_list { return; } " 0
Give a man a fish: <%-(-(-(-<
In reply to Re: Why is "odd number of elements in hash assignment" warning and not error?
by AnomalousMonk
in thread Why is "odd number of elements in hash assignment" warning and not error?
by Dallaylaen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |