Just another Perl shrine | |
PerlMonks |
Re: End of subroutineby marcussen (Pilgrim) |
on Nov 07, 2008 at 05:21 UTC ( [id://722156]=note: print w/replies, xml ) | Need Help?? |
It is used outside the subroutine, your question is actually: why is 1; used at the end of a module? A use statement (as in use module;) evals the contents of a file. The last expression in the file must evaluate to true, or the eval dies. UPDATE: Correction of my statement by ikegami (see below);
Confucius says kill mosquito unless cannon
In Section
Seekers of Perl Wisdom
|
|