Port to Perl 5.24
This commit is contained in:
parent
9edf81640a
commit
8dd77c2055
|
@ -1,10 +1,9 @@
|
|||
#!/usr/bin/perl
|
||||
use charnames ':full'; # only necessary before v5.16
|
||||
use strict;
|
||||
use v5.10;
|
||||
use v5.24;
|
||||
use warnings;
|
||||
use autodie;
|
||||
use experimental qw(autoderef);
|
||||
|
||||
use DBIx::SimpleConnect;
|
||||
use Encode qw(:fallbacks encode);
|
||||
|
@ -62,7 +61,7 @@ say $fh "<th class='num'>", "Table size (bytes)", "</th>";
|
|||
say $fh "<th class='num'>", "Indexes size (bytes)", "</th>";
|
||||
say $fh "</tr>";
|
||||
|
||||
for my $s (sort { $overview->{$b}{''}{total_size} <=> $overview->{$a}{''}{total_size} } keys $overview) {
|
||||
for my $s (sort { $overview->{$b}{''}{total_size} <=> $overview->{$a}{''}{total_size} } keys $overview->%*) {
|
||||
|
||||
say $fh "<tr class='schema'>";
|
||||
say $fh "<td class='name'>", escape($s), "</td>";
|
||||
|
@ -72,7 +71,7 @@ for my $s (sort { $overview->{$b}{''}{total_size} <=> $overview->{$a}{''}{total_
|
|||
say $fh "<td class='num'>", pretty($overview->{$s}{''}{indexes_size}), "</td>";
|
||||
say $fh "</tr>";
|
||||
|
||||
for my $t (sort { $overview->{$s}{$b}{total_size} <=> $overview->{$s}{$a}{total_size} } keys $overview->{$s}) {
|
||||
for my $t (sort { $overview->{$s}{$b}{total_size} <=> $overview->{$s}{$a}{total_size} } keys $overview->{$s}->%*) {
|
||||
next unless $t; # schema - we already have that
|
||||
|
||||
say $fh "<tr class='table'>";
|
||||
|
|
Loading…
Reference in New Issue