X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/33dc5903af2c531fdd07df0ac1591c55ea13c5d3..b9021e9738004ee35018d3ec16495b7dc1a287f0:/selfforum-cgi/shared/Template/_query.pm diff --git a/selfforum-cgi/shared/Template/_query.pm b/selfforum-cgi/shared/Template/_query.pm index 8d1d8ec..3fb8e2d 100644 --- a/selfforum-cgi/shared/Template/_query.pm +++ b/selfforum-cgi/shared/Template/_query.pm @@ -4,7 +4,7 @@ package Template::_query; # # # File: shared/Template/_query.pm # # # -# Authors: André Malo , 2001-06-16 # +# Authors: André Malo # # # # Description: compose a query string # # # @@ -13,14 +13,17 @@ package Template::_query; use strict; use vars qw( @EXPORT - $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'} ################################################################################ # @@ -40,7 +43,7 @@ use base qw(Exporter); # sub url_encode ($) { my $string = shift; - $string=~s/([^a-zA-Z\d_.-])/uc sprintf('%%%02x',ord($1))/eg; + $string=~s/([^a-zA-Z\d_.-])/uc sprintf('%%%02x' => ord($1))/eg; $string; } @@ -73,4 +76,4 @@ sub query_string ($) { # # -### end of Template::_query #################################################### +### end of Template::_query #################################################### \ No newline at end of file