in reply to Re: module return
in thread module return
The above lines have bean given for that cause. according to my understanding. "if you give 1 at end of the module, perl loads the module, otherwise not loaded". is it correct????"We need the 1; at the end because when a module loads Perl checks to +see that the module returns a true value to ensure it loaded OK. You +could put any true value at the end (see Code::Police) but 1 is the c +onvention."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: module return
by Anonymous Monk on Aug 17, 2009 at 11:18 UTC |