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.
> BEGIN failed--compilation aborted at  /home/httpd/perl/test.pl line 12.
> Any hints, Thank you very much.
> 
> Steven.
> 

End of code:
1;

Every module has to return a true value at the end of it.... you could
probably do 1000; at the end, but 1 is convention.

Thanks,
Shane.

Reply via email to