X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/b3419b3e064483ec301372517e42641f9ebc53a8..f91793544f0d5c7f978e5cf6214d9882d7c4db7c:/selfforum-cgi/shared/Template.pm?ds=inline diff --git a/selfforum-cgi/shared/Template.pm b/selfforum-cgi/shared/Template.pm index ece7eaa..0400ec7 100644 --- a/selfforum-cgi/shared/Template.pm +++ b/selfforum-cgi/shared/Template.pm @@ -4,17 +4,19 @@ package Template; # # # File: shared/Template.pm # # # -# Authors: André Malo , 2001-04-12 # -# Frank Schoenmann , 2001-06-04 # +# Authors: André Malo # +# Frank Schönmann # # # # Description: Handle XML based HTML-Templates # # # ################################################################################ use strict; -use vars qw($xml_dom_used); +use vars qw( + $xml_dom_used +); -use Carp qw(croak confess); +use Carp qw(croak); BEGIN { $xml_dom_used = eval q[ @@ -24,6 +26,17 @@ BEGIN { ]; } +################################################################################ +# +# Version check +# +# last modified: +# $Date$ (GMT) +# by $Author$ +# +sub VERSION {(q$Revision$ =~ /([\d.]+)\s*$/)[0] or '0.0'} + + ### sub new #################################################################### # # constructor @@ -178,7 +191,8 @@ sub scrap { ); # remove newlines - $scrap =~ s/\n|\r\n|\n\r|\r//g if ($no_nl); + # + $scrap =~ s/\015\012|\015|\012//g if ($no_nl); # return \$scrap; @@ -345,9 +359,9 @@ sub parse_if { return; } -# keeping 'require' happy +# keep 'require' happy 1; # # -### end of Template ############################################################ +### end of Template ############################################################ \ No newline at end of file