in reply to End of subroutine
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: End of subroutine
by ikegami (Patriarch) on Nov 07, 2008 at 05:29 UTC |
In Section
Seekers of Perl Wisdom