Re: Please HELP, Thanks.
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 Christian On Mon, 29 May 2000, you 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
Re: Please HELP, Thanks.
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: > >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. > >Jim Winstead wrote: > >> On May 25, Jeff Stuart wrote: >> > That's a GOOD question. Is there anyone at the moment using perl 5.6.0 in >> > production? Is it ready for production yet? >> >> We have one site in production with it, and a number of others >> going into production soon. We've been using is exclusively in our >> development environment for all new development since shortly after >> 5.6.0 came out. It has been rock-solid for us. (The basic setup >> is Apache 1.3.12, mod_perl 1.24, perl 5.6.0, and FreeBSD 3.4.) >> >> Jim > >
Re: Please HELP, Thanks.
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.
Please HELP, Thanks.
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. Jim Winstead wrote: > On May 25, Jeff Stuart wrote: > > That's a GOOD question. Is there anyone at the moment using perl 5.6.0 in > > production? Is it ready for production yet? > > We have one site in production with it, and a number of others > going into production soon. We've been using is exclusively in our > development environment for all new development since shortly after > 5.6.0 came out. It has been rock-solid for us. (The basic setup > is Apache 1.3.12, mod_perl 1.24, perl 5.6.0, and FreeBSD 3.4.) > > Jim