Errto has asked for the wisdom of the Perl Monks concerning the following question:
Ever since I was a wee lad (not true) I've known that require requires your module to "return" a true value in its last statement. I'm wondering why. The documentation doesn't really say, and I'm struggling to think of a scenario where this feature has a beneficial effect. Can anyone enlighten me?
Update: Also, anyone know of any modules on CPAN (well-known or otherwise) that use this feature?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why require a true value
by Zaxo (Archbishop) on Nov 01, 2005 at 04:29 UTC | |
by Errto (Vicar) on Nov 01, 2005 at 04:32 UTC | |
by Dominus (Parson) on Nov 01, 2005 at 05:48 UTC | |
by Zaxo (Archbishop) on Nov 01, 2005 at 04:41 UTC | |
|
Re: why require a true value
by Tanktalus (Canon) on Nov 01, 2005 at 04:32 UTC | |
|
Re: why require a true value
by GrandFather (Saint) on Nov 01, 2005 at 04:30 UTC |