On Sun, 3 Jun 2001, Brian Ingerson wrote:
> David Coppit wrote:
>
> > I thought this stuff would be auto-generated by Inline (as implied in the
> > Inline documentation), so I removed it when I switched to Inline.
>
> Inline does not generate any constant AUTOLOADing for you.
Actually, I interpreted the error message as indicating that it
couldn't AUTOLOAD the function read_email. Then I misintrepreted the
AUTOLOAD generated by h2xs as somehow being relevant. (I told you I
was mostly clueless... ;)
Here's the error again, as it occurs when I try to "make test" my
Inline module:
Use of inherited AUTOLOAD for non-method
Mail::Folder::FastReader::read_email() is deprecated at t/simple.t
line 39.
Can't locate auto/Mail/Folder/FastReader/read_email.al in @INC
After a bit more digging, I found that my use of three levels in the
module name was what was causing the problem. Attached is a
Math::Simple::Sub distribution which is the same as your Math::Simple,
but which has a new name and a test script.
Hopefully this bug can be fixed by just adding a /g to a regex. :)
David
P.S. Your POD needs a semicolon:
package Math::Simple;
use strict;
use vars qw($VERSION @ISA @EXPORT_OK);
require Exporter;
@ISA = qw(Exporter);
@EXPORT_OK = qw(add subtract); <===========
$VERSION = '0.20';
--
perl -e 'print "Just another pain-in-the-ass user,"'
Math-Simple-0.20.tar.gz