I try write an perl_mod script, but it say: "Internal Server Error".
this is module file: (mm1.pm)
package mm1;
use strict;
use XML::Simple;
use DBI;
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(asd);
our @EXPORT = qw(asd);
sub asd(){
print "2222";
}
this is main file: (main.perl)
#!/usr/bin/perl -w
use strict;
use CGI qw/:standard/;
use CGI::Carp qw/fatalsToBrowser warningsToBrowser/;
use mm1;
print header(-type => 'text/html', -charset=>'utf-8');
print "asdasd";
If i try run without "use mm1;" this main.perl then succeed.
What is the problem?
Thanks!