go ahead... be a heretic | |
PerlMonks |
Re: Why no warnings for 1 in void context?by davido (Cardinal) |
on Jul 16, 2005 at 16:25 UTC ( [id://475471]=note: print w/replies, xml ) | Need Help?? |
It is so that the convention of ending a module with 1; won't trigger a warning. Modules must return truth, and it's common practice to put a 1; on the last line to satisfy this criteria. See perlmod for supporting documentation. Dave
In Section
Seekers of Perl Wisdom
|
|