A module file must end return with a true value. And adding the 1; at the end is the easiest way to accomplish this.
If you don't do it, you have to hope, that your module code will always end with return a true return value... (Please don't hope... and please don't think, "my module will always do this...")
update: s/end/return/; sorry, used the wrong word for this... Thanks JavaFan
In reply to Re: Perl Module ending without 1;
by linuxer
in thread Perl Module ending without 1;
by prantikd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |