467,202 Members | 1,037 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,202 developers. It's quick & easy.

.pm did not return a true value at

Hi All,

Can any one please explain the logic behind this error and impact on putting 1; at the end of module? As you know this error "****.pm did not return a true value at****" comes when we use call another Perl module from a Perl file, but this error goes if we put 1; at the end of Perl file. Does it a right approach or some other way is there? Because same set of scripts does not give this error, but after creating one extra module from existing one, this error is coming. Even after commenting out the additional module this error is not stopping.

So:
1. Is it best way to put 1; at the end of Perl file to stop this error?
2. Does it not make Script slower?
3. Is this error due to some other reason?

Please give your valuable inputs in this....

Thanks,
Pawan
Aug 1 '08 #1
  • viewed: 26044
Share:
2 Replies
KevinADC
Expert 2GB
This thread I found on another website explains it very well:

why is the '1;' necessary at the end of perl modules
Aug 1 '08 #2
Thank you very much Kevin!!!
It it answers my questions.

Regards,
Pawan
Aug 1 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by Mark Jerde | last post: by
5 posts views Thread by siaj | last post: by
12 posts views Thread by Michael Maes | last post: by
13 posts views Thread by cppquester@googlemail.com | last post: by
7 posts views Thread by Terry Olsen | last post: by
6 posts views Thread by exander77@gmail.com | last post: by
KoreyAusTex
6 posts views Thread by KoreyAusTex | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.