On Mon, May 29, 2000 at 08:05:08AM -0500, Hui Zhu wrote:
Hi ALL:
I have a module called samplemod.pm. It used to work fine. After modifying
something, i got errors from a perl
script (use samplemod;) saying:
samplemod.pm did not return a true value at /home/httpd/perl/test.pl line 12.
You could try putting a
1;
at the end of the module, if you don't already have one. Leaving this out
is a common mistake.
Mike
-Original Message-
From: Hui Zhu [EMAIL PROTECTED]
Cc: Modperl Mailing List [EMAIL PROTECTED]
Date: 29 May 2000 14:00
Subject: Please HELP, Thanks.
Hi ALL
Not really a mod_perl question here,,
but anyway if you include a file with "use" or "require" that file need to
return a true value.
return 1;
or just:
1;
you have probebly removed this line from samplemod.pm
check samplemod.pm and make shure it returns a true value.
Best regards