From: ndparker <> Date: Sat, 16 Jun 2001 22:16:17 +0000 (+0000) Subject: added version checks X-Git-Url: https://git.p6c8.net/selfforum.git/commitdiff_plain/14525169b53ec1bafc6fa47f7f4f84ffc4298bd1 added version checks --- diff --git a/selfforum-cgi/shared/Arc/Archive.pm b/selfforum-cgi/shared/Arc/Archive.pm index 8b4daea..9e6694b 100644 --- a/selfforum-cgi/shared/Arc/Archive.pm +++ b/selfforum-cgi/shared/Arc/Archive.pm @@ -4,13 +4,17 @@ package Arc::Archive; # # # File: shared/Arc/Archive.pm # # # -# Authors: Andre Malo , 2001-04-29 # +# Authors: Andre Malo , 2001-06-16 # # # # Description: Severance of Threads and archiving # # # ################################################################################ use strict; +use vars qw( + @EXPORT + $VERSION +); use Arc::Test; use Lock qw(:ALL); @@ -28,12 +32,18 @@ use Posting::Cache; use XML::DOM; +################################################################################ +# +# Version check +# +$VERSION = do { my @r =(q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; + ################################################################################ # # Export # use base qw(Exporter); -@Arc::Archive::EXPORT = qw(cut_tail); +@EXPORT = qw(cut_tail); ### sub cut_tail ($) ########################################################### # @@ -220,7 +230,7 @@ sub cut_tail ($) { \%failed; } -# keep require happy +# keep 'require' happy 1; # diff --git a/selfforum-cgi/shared/Arc/Test.pm b/selfforum-cgi/shared/Arc/Test.pm index 6851912..aacc92e 100644 --- a/selfforum-cgi/shared/Arc/Test.pm +++ b/selfforum-cgi/shared/Arc/Test.pm @@ -11,13 +11,23 @@ package Arc::Test; ################################################################################ use strict; +use vars qw( + @EXPORT + $VERSION +); + +################################################################################ +# +# Version check +# +$VERSION = do { my @r =(q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; ################################################################################ # # Export # use base qw(Exporter); -@Arc::Test::EXPORT = qw(get_obsolete_threads); +@EXPORT = qw(get_obsolete_threads); ### sub get_obsolete_threads ($) ############################################### # @@ -110,7 +120,7 @@ sub get_obsolete_threads ($) { [sort {$a <=> $b} splice @sorted => 0, $obsolete]; } -# keep require happy +# keep 'require' happy 1; #