summaryrefslogtreecommitdiff
path: root/contrib/seg/seg-validate.pl
diff options
context:
space:
mode:
authorPeter Eisentraut2016-12-04 17:00:00 +0000
committerPeter Eisentraut2017-01-05 17:34:48 +0000
commit933b46644c787ed0b763532951961361e9304095 (patch)
tree1c739f122fd27ed237f1bdebdb3066b3ad99d3ab /contrib/seg/seg-validate.pl
parent175ff6598e014b2fe84c06fa443161294fc2eed0 (diff)
Use 'use strict' in all Perl programs
Diffstat (limited to 'contrib/seg/seg-validate.pl')
-rwxr-xr-xcontrib/seg/seg-validate.pl35
1 files changed, 19 insertions, 16 deletions
diff --git a/contrib/seg/seg-validate.pl b/contrib/seg/seg-validate.pl
index cb3fb9a099a..b8957ed984a 100755
--- a/contrib/seg/seg-validate.pl
+++ b/contrib/seg/seg-validate.pl
@@ -1,20 +1,23 @@
#!/usr/bin/perl
-$integer = '[+-]?[0-9]+';
-$real = '[+-]?[0-9]+\.[0-9]+';
-
-$RANGE = '(\.\.)(\.)?';
-$PLUMIN = q(\'\+\-\');
-$FLOAT = "(($integer)|($real))([eE]($integer))?";
-$EXTENSION = '<|>|~';
-
-$boundary = "($EXTENSION)?$FLOAT";
-$deviation = $FLOAT;
-
-$rule_1 = $boundary . $PLUMIN . $deviation;
-$rule_2 = $boundary . $RANGE . $boundary;
-$rule_3 = $boundary . $RANGE;
-$rule_4 = $RANGE . $boundary;
-$rule_5 = $boundary;
+
+use strict;
+
+my $integer = '[+-]?[0-9]+';
+my $real = '[+-]?[0-9]+\.[0-9]+';
+
+my $RANGE = '(\.\.)(\.)?';
+my $PLUMIN = q(\'\+\-\');
+my $FLOAT = "(($integer)|($real))([eE]($integer))?";
+my $EXTENSION = '<|>|~';
+
+my $boundary = "($EXTENSION)?$FLOAT";
+my $deviation = $FLOAT;
+
+my $rule_1 = $boundary . $PLUMIN . $deviation;
+my $rule_2 = $boundary . $RANGE . $boundary;
+my $rule_3 = $boundary . $RANGE;
+my $rule_4 = $RANGE . $boundary;
+my $rule_5 = $boundary;
print "$rule_5\n";