Randall Perry <[EMAIL PROTECTED]> writes:

> 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.

Then this seems to be the wrong mailing list. For OS X stuff go to:
http://lists.perl.org/showlist.cgi?name=macosx 

> 
> Can someone tell me what the error means?

The error means Clock.pm did not return a true value. Modules have
to return a true value. This is usually done by writing: 
  1;
as your last line of code. 
Anyway you should read the "perlmod" documentation again: 

  perldoc perlmod

or if using Classic MacPerl look for
 
"Go"->"Advanced Topics"->"Modules" 
in Shuck's menu.  

HTH,

Andreas Marcel

Reply via email to