1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Use 'use strict' in all Perl programs

This commit is contained in:
Peter Eisentraut
2016-12-04 12:00:00 -05:00
parent 175ff6598e
commit 933b46644c
10 changed files with 84 additions and 54 deletions

View File

@ -2,6 +2,10 @@
# this script will sort any table with the segment data type in its last column
use strict;
my @rows;
while (<>)
{
chomp;
@ -10,11 +14,11 @@ while (<>)
foreach (
sort {
@ar = split("\t", $a);
$valA = pop @ar;
my @ar = split("\t", $a);
my $valA = pop @ar;
$valA =~ s/[~<> ]+//g;
@ar = split("\t", $b);
$valB = pop @ar;
my $valB = pop @ar;
$valB =~ s/[~<> ]+//g;
$valA <=> $valB
} @rows)