Is there an easy way to check methods, whose loading is deferred with
AutoLoader, with the can_ok() check? Or would some magic need to be added
to AutoLoader.pm?
Currently, you get an error that the subroutines do not exist.
Liz
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 th
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 shou
On Sat, Aug 31, 2002 at 02:05:53PM +0200, Elizabeth Mattijsen wrote:
> >$ 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