in reply to module return

You can find thread Perl Module ending without 1; worth reading.


Comment on Re: module return
Re^2: module return
by saranperl (Initiate) on Aug 17, 2009 at 10:38 UTC
    ya , i saw the page already. but i am not cleare. They said in that page."module should return true value" that is it. But i want to know why module should return the true value? if i remove the 1 at end of the module, i will get error. please tell me sake of this thank you
      This is done by require so that some initialization code in the module could signal an error condition.
      if i remove the 1 at end of the module, i will get error
      That's all you need to know really. End the module with 1 and it works. Don't, and it doesn't.