On Mon, Mar 10, 2003 at 02:39:36PM -0800, Jeff Zucker wrote:
> Tim Bunce wrote:
> 
> >On Tue, Mar 04, 2003 at 09:32:27AM -0800, Jeff Zucker wrote:
> >
> >>>Or run this command
> >>>
> >>>   perl -MSQL::Statement=9999
> >>>
> >>Hmm, what am I missing?  That doesn't work for me
> >>
> >>From memory... it needs a non-lexical $VERSION and (I think) to be
> >a subclass of Exporter.
> 
> Hmm, that's right.  If I subclass Exporter, the version number trick 
> works.  Is it worth subclassing it just for this feature?

Probably, unless there's a good reason not to.

I'm not sure if subclassing is really needed. I think the
version check logic is nt in UNIVERSAL. See XS(XS_UNIVERSAL_VERSION)
in http://search.cpan.org/src/GSAR/perl-5.6.1/universal.c
But I'll leave you to onder that if you want to.

Tim.

Reply via email to