]> git.p6c8.net - selfforum.git/blobdiff - selfforum-cgi/shared/Template.pm
CGI::Carp does not block eval errors all the time (bug?)
[selfforum.git] / selfforum-cgi / shared / Template.pm
index 16562c91c706c7a80585e2d5f8c2c778c4961d20..0400ec748a4f7b7e2a67cdc430e75b7997768be9 100644 (file)
@@ -4,8 +4,8 @@ package Template;
 #                                                                              #
 # File:        shared/Template.pm                                              #
 #                                                                              #
-# Authors:     André Malo <nd@o3media.de>, 2001-04-12                          #
-#              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