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
|