I delved into the source code, and I believe the offending function ends with return wantarray ? @values : $values[0];.
So hash building is in list context; the fat comma doesn't change a thing. Why not? Are my options to force scalar context, or append "|| 0" for a default value?
In reply to Re^2: mystery function & Odd number of elements in anonymous hash
by Anonymous Monk
in thread mystery function & Odd number of elements in anonymous hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |