On Sat, May 19, 2001 at 02:06:33PM -0400, Randall Perry wrote:
> Just created my 1st object in Perl (with code from the Perl Developers
> Guide), and got the error:
> 'Clock.pm did not return a true value at clock_test.pl line 1.'
>
> Below is the object code, Clock.pm and the program that called it,
> clock_test.pl.
>
> I installed Clock.pm in '/Library/Perl' (Mac OS X, BSD Unix) and checked its
> syntax. Syntax also ok on clock_test.pl.
>
>
> Can someone tell me what the error means?
>
The *first* place to look when you have to ask "What does this error mean?"
is the perldiag documentation, which describes all of Perl's diagnostic
messages.
%s did not return a true value
(F) A required (or used) file must return a true value
to indicate that it compiled correctly and ran its
initialization code correctly. It's traditional to
end such a file with a "1;", though any true value
would do. See the require entry in the perlfunc
manpage.
Ronald