From aa8d61528704dd0f5b5567f535161ffdecf4a135 Mon Sep 17 00:00:00 2001 From: ndparker <> Date: Wed, 25 Jul 2001 20:11:11 +0000 Subject: [PATCH 1/1] modified version check --- selfforum-cgi/shared/Encode/Plain.pm | 11 +++++++---- selfforum-cgi/shared/Encode/Posting.pm | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/selfforum-cgi/shared/Encode/Plain.pm b/selfforum-cgi/shared/Encode/Plain.pm index 3deb755..2379e38 100644 --- a/selfforum-cgi/shared/Encode/Plain.pm +++ b/selfforum-cgi/shared/Encode/Plain.pm @@ -4,7 +4,7 @@ package Encode::Plain; # # # File: shared/Encode/Plain.pm # # # -# Authors: André Malo , 2001-04-12 # +# Authors: André Malo # # # # Description: Encode text for HTML Output (entities, spaces) # # # @@ -17,14 +17,17 @@ use vars qw( %unimap $utf8 $v56 - $VERSION ); ################################################################################ # # 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'} $v56 = eval {local $SIG{__DIE__}; require 5.6.0;}; @@ -525,7 +528,7 @@ BEGIN { ); } -# keeping require happy +# keep 'require' happy 1; # diff --git a/selfforum-cgi/shared/Encode/Posting.pm b/selfforum-cgi/shared/Encode/Posting.pm index 4ff9410..ff7b65c 100644 --- a/selfforum-cgi/shared/Encode/Posting.pm +++ b/selfforum-cgi/shared/Encode/Posting.pm @@ -4,7 +4,7 @@ package Encode::Posting; # # # File: shared/Encode/Posting.pm # # # -# Authors: André Malo , 2001-04-10 # +# Authors: André Malo # # # # 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; # -- 2.34.1