projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
56c9ecf
)
remove leading and trailing spaces
author
minima
<minima>
Tue, 18 Dec 2001 12:30:25 +0000
(12:30 +0000)
committer
minima
<minima>
Tue, 18 Dec 2001 12:30:25 +0000
(12:30 +0000)
cmd/wcy.pl
patch
|
blob
|
history
cmd/wwv.pl
patch
|
blob
|
history
diff --git
a/cmd/wcy.pl
b/cmd/wcy.pl
index 4d0122b95e00d1a059587d880d8e530644b7ed37..58b3c40f5e3aea1be1fe395125f8722b74a0d422 100644
(file)
--- a/
cmd/wcy.pl
+++ b/
cmd/wcy.pl
@@
-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
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
my %args = map {split /\s*=\s*/} split /\s*,\s*/, lc $line;
# check the ranges of each one
diff --git
a/cmd/wwv.pl
b/cmd/wwv.pl
index 3b0397fce0526569d294eedbb92d1e11c8c8e7f2..9ff5cb5808682c74e528b672862e5cbebbbb8b01 100644
(file)
--- a/
cmd/wwv.pl
+++ b/
cmd/wwv.pl
@@
-36,9
+36,10
@@
my @out;
my $hour = (gmtime $main::systime)[2];
my $d = int ($main::systime / 3600) * 3600 + 18 * 60;
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;
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;
# make a hash out of the args
my %args = map {split /\s*=\s*/, lc $_} @l;