>
> There is one issue left:
>
> When I try to use $sth->errstr, for example, from within my classes, I
> get a reference error.
>
> or croak "DB Error: $this->errstr\n";
>
> $sth->execute()
> or croak "DB Error: $sth->errstr\n";
> DB Error: MyDB::DB::st=HASH(0x82e78a0)->errstr
The arrow isnt interpolated inside strings when indicating a function call.
So it will print $sth then an arrow and then an 'errstr'.
Try this:
$sth->execute() or croak "DB Error:" . $sth->errstr ;
- Re: ISA inheritance vs. DBI? M.W. Koskamp
- Re: ISA inheritance vs. DBI? Paul D. Smith
- Re: ISA inheritance vs. DBI? Tim Bunce
- Re: ISA inheritance vs. DBI? Ask Bjoern Hansen
- Re: ISA inheritance vs. DBI? Paul D. Smith
- Re: ISA inheritance vs. DBI? Ask Bjoern Hansen
- Re: ISA inheritance vs. DBI? Paul D. Smith
- Re: ISA inheritance vs. DBI? Stephen Clouse
- RE: ISA inheritance vs. DBI? Steve Sapovits
- RE: ISA inheritance vs. DBI? Paul D. Smith
- Re: ISA inheritance vs. DBI? M.W. Koskamp
- Re: ISA inheritance vs. DBI? Paul D. Smith
- RE: ISA inheritance vs. DBI? George Matthes
