in reply to Why no warnings for 1 in void context?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why no warnings for 1 in void context?
by samtregar (Abbot) on Jul 16, 2005 at 16:54 UTC | |
by nothingmuch (Priest) on Jul 17, 2005 at 07:53 UTC | |
by jonadab (Parson) on Jul 17, 2005 at 11:26 UTC |