I think disabling warnings for this kind of thing is perfectly fine but this occurs to me as an alternative; not expressing a preference–
sub crommulate { push @_, undef if @_ % 2; my %bingo = @_; # ... }
In reply to Re: How to disable:Odd number of elements in hash assignment warning?
by Your Mother
in thread How to disable:Odd number of elements in hash assignment warning?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |