in reply to ($$) and 1;
Sorry -- didn't see the second question at first.
This refers to a mechanism that allows a module to indicate failure. I've never seen it used, though. If you use a package, the module is required to exit with a true value. If a declaration that evaluates to true happens to be at the end of your package, use will work just fine. (That's why it worked for you.) But to be on the safe side, you should add
1;
to the end of your modules, or else it might be broken once you decide to change the code. See also http://www.perldoc.com/perl5.6/pod/perlmod.html (search for "1;" in the page).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: The magic "one"
by particle (Vicar) on Aug 01, 2002 at 14:02 UTC |