]> git.p6c8.net - selfforum.git/blobdiff - selfforum-cgi/shared/Encode/Posting.pm
modified version check
[selfforum.git] / selfforum-cgi / shared / Encode / Posting.pm
index 4ff9410304f8044b4c8f186b9e99e28d7590d81c..ff7b65c14c1f7bccf36698b049465503538ccf83 100644 (file)
@@ -4,7 +4,7 @@ package Encode::Posting;
 #                                                                              #
 # File:        shared/Encode/Posting.pm                                        #
 #                                                                              #
-# Authors:     AndrĂ© Malo <nd@o3media.de>, 2001-04-10                          #
+# Authors:     AndrĂ© Malo <nd@o3media.de>                                      #
 #                                                                              #
 # Description: prepare a Posting text for saving and visual (HTML) output      #
 #                                                                              #
@@ -13,7 +13,6 @@ package Encode::Posting;
 use strict;
 use vars qw(
   @EXPORT
-  $VERSION
 );
 
 use Encode::Plain; $Encode::Plain::utf8 = 1;
@@ -23,7 +22,11 @@ use CheckRFC;
 #
 # 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'}
 
 ################################################################################
 #
@@ -253,7 +256,7 @@ sub message_field ($$) {
   \$posting;
 }
 
-# keeping 'require' happy
+# keep 'require' happy
 1;
 
 #

patrick-canterino.de