Typo.
[www.jankratochvil.net.git] / SendMsg.pl
index c480be3..1f7b4fb 100755 (executable)
 
 package SendMsg;
 require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway
-use vars qw($VERSION $CVS_ID);
-$VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
-$CVS_ID=q$Id$;
+our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
+our $CVS_ID=q$Id$;
 use strict;
 use warnings;
 
 BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
 use My::Web;
 use Apache::Constants qw(HTTP_NO_CONTENT);
-require "Mail::Send";
+require Mail::Send;
 
 
 my $W=My::Web->init(
                "__PACKAGE__"=>__PACKAGE__,
                "header_only"=>1,
                "args_check"=>{
-                               "msgscript"=>'.*',      #       If 'text/javascript' is supported.
-                               "msghtml"=>'.*',        # No 'text/javascript' available.
+                               "msgscript"=>'',        #       If 'text/javascript' is supported.
+                               "msghtml"=>'',  # No 'text/javascript' available.
                                },
                );
 my $msg=$W->{"args"}{"msghtml"} || $W->{"args"}{"msgscript"};