]> git.p6c8.net - selfforum.git/blobdiff - selfforum-cgi/shared/Template/_query.pm
sort threads by number, not alphabetically
[selfforum.git] / selfforum-cgi / shared / Template / _query.pm
index 8d1d8ecdb093bc04c126b82806dc7c33b87e53e5..3fb8e2d059a2813e6eb32a2933f282e3f864ec3c 100644 (file)
@@ -4,7 +4,7 @@ package Template::_query;
 #                                                                              #
 # File:        shared/Template/_query.pm                                       #
 #                                                                              #
 #                                                                              #
 # File:        shared/Template/_query.pm                                       #
 #                                                                              #
-# Authors:     AndrĂ© Malo <nd@o3media.de>, 2001-06-16                          #
+# Authors:     AndrĂ© Malo <nd@o3media.de>                                      #
 #                                                                              #
 # Description: compose a query string                                          #
 #                                                                              #
 #                                                                              #
 # Description: compose a query string                                          #
 #                                                                              #
@@ -13,14 +13,17 @@ package Template::_query;
 use strict;
 use vars qw(
   @EXPORT
 use strict;
 use vars qw(
   @EXPORT
-  $VERSION
 );
 
 ################################################################################
 #
 # Version check
 #
 );
 
 ################################################################################
 #
 # 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;
 #
 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;
 }
 
   $string;
 }
@@ -73,4 +76,4 @@ sub query_string ($) {
 
 #
 #
 
 #
 #
-### end of Template::_query ####################################################
+### end of Template::_query ####################################################
\ No newline at end of file

patrick-canterino.de