On Fri, 9 Jul 2004 13:36:26 -0400 , Bob Showalter wrote > BOLCATO CHRIS (esm1cmb) wrote: > > I am receiving "/home/users/me/foo.pl did not return a true value at > > ./program1.pl at line 2" > > where line 2 is the "require". > > That's the semantics of "require" (see perldoc -f require). > > The standard idiom is to place > > 1; > > at the end of foo.pl, so that the last expression evaluated will be true.
To be more explicit (for people coming from non-Perl backgrounds taking ownership of the code) I like to use: #--------------------------------------------------------------------- # DO NOT REMOVE THIS return( 1 ) - INDICATES SUCCESS TO PERL COMPILER. #--------------------------------------------------------------------- return( 1 ). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>