On Thu, 29 Aug 2002 16:11:17 -0700 Jared Still <[EMAIL PROTECTED]> wrote:

> 
> This is the essentials of what worked for me after 
> studying subclass.t:
> 
> ====================================
> package PDBA::CM;
> require DBI;
> @ISA=qw(DBI);
> 
> __PACKAGE__->init_rootclass;
> 
> use Carp;
> use strict;
> use warnings;
> use diagnostics;
> 
> sub new {
> 
>   # bunch of code goes here
> 
> }
> 
> package PDBA::CM::db;
> no strict 'vars';
> @ISA = qw(DBI::db);
> 
> package PDBA::CM::st;
> no strict 'vars';
> @ISA = qw(DBI::st);
> 1;
> ================================

If you have the "no strict 'vars';" lines to avoid an error message from
@ISA, I'd suggest 'use vars qw( @ISA );' instead.
-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

Reply via email to