summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6b769e0)
Empty string splits to an empty list, resulting in a benign warning:
> Odd number of elements in hash assignment
sub print_rows {
my $self = shift;
my %moderows = (
sub print_rows {
my $self = shift;
my %moderows = (
- -DEFAULT => !@_ ? '' : split(/(?:\s*([^=\s]*)=\s*)/, shift),
+ -DEFAULT => !!@_ && $_[0] ne '' && split(/(?:\s*([^=\s]*)=\s*)/, shift),
# plus specific mode overrides prefixed by '='
);
my $defrows = shift || [2, 1, 0];
# plus specific mode overrides prefixed by '='
);
my $defrows = shift || [2, 1, 0];