projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
severe munging of code in prepartion for newprotocol
[spider.git]
/
perl
/
Bands.pm
diff --git
a/perl/Bands.pm
b/perl/Bands.pm
index d40d4c823d1dfe032579a39b7009dbb4dc86b2f8..728bb615538cdb7a6d8cdfbeac1bf74babf21c77 100644
(file)
--- a/
perl/Bands.pm
+++ b/
perl/Bands.pm
@@
-35,6
+35,12
@@
$bandsfn = "$main::data/bands.pl";
band => '0,BAND,parraypairs',
);
band => '0,BAND,parraypairs',
);
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
# load the band data
sub load
{
# load the band data
sub load
{
@@
-131,18
+137,18
@@
sub field_prompt
return $valid{$ele};
}
return $valid{$ele};
}
-no strict;
+
#
no strict;
sub AUTOLOAD
{
sub AUTOLOAD
{
-
my $self = shif
t;
+
no stric
t;
my $name = $AUTOLOAD;
return if $name =~ /::DESTROY$/;
my $name = $AUTOLOAD;
return if $name =~ /::DESTROY$/;
- $name =~ s/.*:://o;
+ $name =~ s/
^
.*:://o;
# this clever line of code creates a subroutine which takes over from autoload
# from OO Perl - Conway
# this clever line of code creates a subroutine which takes over from autoload
# from OO Perl - Conway
- *
{$AUTOLOAD} = sub {@_ > 1 ? $_[0]->{$name} = $_[1] : $_[0]->{$name}}
;
-
@_ ? $self->{$name} = shift : $self->{$name}
;
+ *
$AUTOLOAD = sub {@_ > 1 ? $_[0]->{$name} = $_[1] : $_[0]->{$name}}
;
+
goto &$AUTOLOAD
;
}
1;
}
1;