Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6e00b261

Von Moritz Bunkus vor etwa 18 Jahren hinzugefügt

  • ID 6e00b261a86eaa1ba0bc9da62bd2f42f94e1bac8
  • Vorgänger c4c2f760
  • Nachfolger 2819d504

Codevereinfachung

Unterschiede anzeigen:

SL/LXDebug.pm
return;
}
my %column_lengths;
my $first_row = 1;
my %column_lengths = map { $_, length $_ } keys %{ $results->[0] };
foreach my $row (@{ $results }) {
if ($first_row) {
map { $column_lengths{$_} = length $_ } keys %{ $row };
$first_row = 0;
}
map { $column_lengths{$_} = length $row->{$_} if (length $row->{$_} > $column_lengths{$_}) } keys %{ $row };
}

Auch abrufbar als: Unified diff