in reply to Development with Autoloader
in thread Filepointer of source file inside source filter

Hmmm... I may be missing something. But if I have a module Foo:
package Foo; use AutoLoader qw(AUTOLOAD); 1; __END__ sub a {print "a\n" }
and a program:
use Foo; a();
I get the following error:
Can't locate auto/Foo/autosplit.ix in @INC (@INC contains: /usr/local/lib/perl5/5.8.1/darwin-thread-multi /usr/local/lib/perl5/5.8.1 /usr/local/lib/perl5/site_perl/5.8.1/darwin-thread-multi /usr/local/lib/perl5/site_perl/5.8.1 /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/5.8.1/AutoLoader.pm line 160. at Foo.pm line 3 Undefined subroutine &main::a called at x line 2.
which indicates to me you must install your module before you can test it. Maybe you don't get an error if you've already installed a module that way, but then you're not running the development version, but the installed version!

Or are we talking about different things, as you are talking about "Autoload" and I'm talking about AutoLoader?

Liz

Replies are listed 'Best First'.
Re: Re: Development with Autoload
by cbraga (Pilgrim) on Oct 05, 2003 at 18:59 UTC
    I guess you're right, I should've typed "Autoloader" and typed "Autoload". I also didn't express myself correctly on the first paragraph. I guess I rushed out and forgot to mention I meant to comment out Autoloader and don't use it when developing the module. Thanks for the -1 though.