X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=9a911b70e4f6dccc2c7968bc9e4523d0ce4734f1;hb=2b58ccdf81685a1167a43c38705a0d84b9d8d661;hp=56e36d4220ba05bc43a6bd3195c4efa672a19b81;hpb=06cf973726ecfc228d68bc82b63feb026d897a68;p=spider.git diff --git a/perl/DXUtil.pm b/perl/DXUtil.pm index 56e36d42..9a911b70 100644 --- a/perl/DXUtil.pm +++ b/perl/DXUtil.pm @@ -12,6 +12,16 @@ use Date::Parse; use IO::File; 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(@month %patmap @ISA @EXPORT); + require Exporter; @ISA = qw(Exporter); @EXPORT = qw(atime ztime cldate cldatetime slat slong yesno promptf @@ -20,6 +30,7 @@ require Exporter; is_qra is_freq is_digits is_pctext is_pcflag insertitem deleteitem ); + @month = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec); %patmap = ( '*' => '.*',