X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/b3419b3e064483ec301372517e42641f9ebc53a8..01bb45df8e13f761fa88597962a9aeebd1c21e11:/selfforum-cgi/shared/Template.pm?ds=sidebyside diff --git a/selfforum-cgi/shared/Template.pm b/selfforum-cgi/shared/Template.pm index ece7eaa..4e19eb2 100644 --- a/selfforum-cgi/shared/Template.pm +++ b/selfforum-cgi/shared/Template.pm @@ -4,17 +4,23 @@ package Template; # # # File: shared/Template.pm # # # -# Authors: André Malo , 2001-04-12 # -# Frank Schoenmann , 2001-06-04 # +# Authors: André Malo , 2001-06-16 # +# Frank Schoenmann , 2001-06-04 # # # # Description: Handle XML based HTML-Templates # # # ################################################################################ use strict; -use vars qw($xml_dom_used); +use vars qw( + $xml_dom_used + $VERSION +); -use Carp qw(croak confess); +use Carp qw( + croak + confess +); BEGIN { $xml_dom_used = eval q[ @@ -24,6 +30,13 @@ BEGIN { ]; } +################################################################################ +# +# Version check +# +$VERSION = do { my @r =(q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; + + ### 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