projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add various stats commands
[spider.git]
/
perl
/
WCY.pm
diff --git
a/perl/WCY.pm
b/perl/WCY.pm
index ee9679c648c776fa763d159387e8c1827279dce9..bccf815b92f82556e07873471754a138d73c9039 100644
(file)
--- a/
perl/WCY.pm
+++ b/
perl/WCY.pm
@@
-18,6
+18,13
@@
use DXDebug;
use Data::Dumper;
use strict;
use Data::Dumper;
use strict;
+
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0;
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
use vars qw($date $sfi $k $expk $a $r $sa $gmf $au @allowed @denied $fp $node $from
$dirprefix $param
$duplth $dupage $filterdef);
use vars qw($date $sfi $k $expk $a $r $sa $gmf $au @allowed @denied $fp $node $from
$dirprefix $param
$duplth $dupage $filterdef);
@@
-150,12
+157,13
@@
sub search
{
my $from = shift;
my $to = shift;
{
my $from = shift;
my $to = shift;
- my
@
date = $fp->unixtoj(shift);
+ my
$
date = $fp->unixtoj(shift);
my $pattern = shift;
my $search;
my @out;
my $eval;
my $count;
my $pattern = shift;
my $search;
my @out;
my $eval;
my $count;
+ my $i;
$search = 1;
$eval = qq(
$search = 1;
$eval = qq(
@@
-173,9
+181,8
@@
sub search
);
$fp->close; # close any open files
);
$fp->close; # close any open files
-
- my $fh = $fp->open(@date);
- for ($count = 0; $count < $to; ) {
+ my $fh = $fp->open($date);
+ for ($i = $count = 0; $count < $to; $i++ ) {
my @in = ();
if ($fh) {
while (<$fh>) {
my @in = ();
if ($fh) {
while (<$fh>) {
@@
-218,8
+225,8
@@
sub print_item
#
sub readfile
{
#
sub readfile
{
- my
@
date = $fp->unixtoj(shift);
- my $fh = $fp->open(
@
date);
+ my
$
date = $fp->unixtoj(shift);
+ my $fh = $fp->open(
$
date);
my @spots = ();
my @in;
my @spots = ();
my @in;