> 
> 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 ;




Reply via email to