X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FUtils.pm;h=dac942307378c7b50163ba48a43597efec04ebfc;hb=f69ebeef6731c87ec22cea1885bf7e5a9ee91a26;hp=31d50eb331f381927755ab4e43b3e858e60aba54;hpb=3ce542ce2668770a5669d2fb98b666f42a5bd388;p=koha_fer diff --git a/C4/Utils.pm b/C4/Utils.pm index 31d50eb331..dac9423073 100644 --- a/C4/Utils.pm +++ b/C4/Utils.pm @@ -35,12 +35,12 @@ BEGIN { } -sub maxwidth (@) { +sub maxwidth { (@_) or return 0; return (sort {$a <=> $b} map {length} @_)[-1]; } -sub hashdump ($$) { +sub hashdump { my $pre = shift; my $val = shift; if (ref($val) =~ /HASH/) {