]> git.p6c8.net - selfforum.git/blobdiff - selfforum-cgi/shared/Template.pm
modified version check
[selfforum.git] / selfforum-cgi / shared / Template.pm
index 4e19eb24d3f21e73bafa8aecb81e573c1d24eabc..0400ec748a4f7b7e2a67cdc430e75b7997768be9 100644 (file)
@@ -4,8 +4,8 @@ package Template;
 #                                                                              #
 # File:        shared/Template.pm                                              #
 #                                                                              #
-# Authors:     André Malo       <nd@o3media.de>, 2001-06-16                    #
-#              Frank Schoenmann <fs@tower.de>,   2001-06-04                    #
+# Authors:     André Malo <nd@o3media.de>                                      #
+#              Frank Schönmann <fs@tower.de>                                   #
 #                                                                              #
 # Description: Handle XML based HTML-Templates                                 #
 #                                                                              #
@@ -14,13 +14,9 @@ package Template;
 use strict;
 use vars qw(
   $xml_dom_used
-  $VERSION
 );
 
-use Carp qw(
-  croak
-  confess
-);
+use Carp qw(croak);
 
 BEGIN {
   $xml_dom_used = eval q[
@@ -34,7 +30,11 @@ BEGIN {
 #
 # Version check
 #
-$VERSION = do { my @r =(q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
+# last modified:
+#    $Date$ (GMT)
+# by $Author$
+#
+sub VERSION {(q$Revision$ =~ /([\d.]+)\s*$/)[0] or '0.0'}
 
 
 ### sub new ####################################################################

patrick-canterino.de