> -----Original Message----- > From: Jeff Westman [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 09, 2002 10:49 PM > To: [EMAIL PROTECTED] > Subject: Package Syntax > > > I usually see the last line in a package as > > 1; > > Does this force the package to compile without error? What > does it do, > and why don't all packages have it?
This is explained in perldoc -f require excerpt: The file must return true as the last statement to indicate successful execution of any initialization code, so it's customary to end such a file with 1; unless you're sure it'll return true otherwise. But it's better just to put the 1;, in case you add more statements. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
