--- Jay Savage <[EMAIL PROTECTED]> wrote: > On 12/8/06, Derek B. Smith > <[EMAIL PROTECTED]> wrote: > > Why is return 1 coded at the end of many programs. > For > > example: > > > > I know it means true but what does this do and > why? > > Derek, > > For historical reasons, the final statement of any > script that is > imported with use or require (and possibly do?) must > return true so > that the compiler knows the module has (in theory) > been imported > properly. > > 'return1;' or more frequently just '1;' has become > the norm because > it's simple, easy, and clear. At this point it's > almost an article of > faith. In theory, though, any true value would > suffice. > > HTH, >
ok understood. thanks Jay and Jeff. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>