remove leading and trailing spaces
authorminima <minima>
Tue, 18 Dec 2001 12:30:25 +0000 (12:30 +0000)
committerminima <minima>
Tue, 18 Dec 2001 12:30:25 +0000 (12:30 +0000)
cmd/wcy.pl
cmd/wwv.pl

index 4d0122b95e00d1a059587d880d8e530644b7ed37..58b3c40f5e3aea1be1fe395125f8722b74a0d422 100644 (file)
@@ -35,6 +35,7 @@ my $hour = (gmtime $main::systime)[2];
 my $d = int ($main::systime / 3600) * 3600 + 18 * 60; 
 
 # make a hash out of the args
+$line = unpad($line);
 my %args = map {split /\s*=\s*/} split /\s*,\s*/, lc $line;
 
 # check the ranges of each one
index 3b0397fce0526569d294eedbb92d1e11c8c8e7f2..9ff5cb5808682c74e528b672862e5cbebbbb8b01 100644 (file)
@@ -36,9 +36,10 @@ my @out;
 my $hour = (gmtime $main::systime)[2];
 my $d = int ($main::systime / 3600) * 3600 + 18 * 60; 
 
+$line = unpad($line);
+
 my @l = split /\s*,\s*/, $line;
 my $forecast = pop @l;
-$forecast = unpad($forecast);
 
 # make a hash out of the args
 my %args = map {split /\s*=\s*/, lc $_} @l;