At 02:38 PM 8/30/02 -0700, Michael G Schwern wrote: >On Fri, Aug 30, 2002 at 04:01:11PM +0200, Elizabeth Mattijsen wrote: > > Is there an easy way to check methods, whose loading is deferred with > > AutoLoader, with the can_ok() check? >Nope. You have to create stubs. The AutoLoader module should do this >automatically for you assuming you've gone through the full build process >and AutoSplit has had a chance to do it's job.
That's been done. So I was wondering why it didn't find them... >$ Makefile.PL >Writing Makefile for AutoExample >$ make >cp lib/AutoExample.pm blib/lib/AutoExample.pm >AutoSplitting blib/lib/AutoExample.pm (blib/lib/auto/AutoExample) >$ cat blib/lib/auto/AutoExample/autosplit.ix ># Index created by AutoSplit for blib/lib/AutoExample.pm ># (file acts as timestamp) >package AutoExample; >sub foo ; >1; Yep, that all is the same as in my situation for the Thread::Pool package. >$ perl -Mblib -wle 'use AutoExample; print "Yes" if AutoExample->can("foo")' >Using /home/schwern/tmp/AutoExample/blib >Yes Hmmm... I'm doing BEGIN { use_ok( 'Thread::Pool' ) }... Maybe there is a difference there... Ok, so it _should_ work. I'll see if I can boil this down and create a bugreport if I can. Liz