On Tue, Mar 30, 2004 at 04:21:57PM -0800, Dean Arnold wrote:
> >
> > So, having recapped on the background information...
> >
> > This thread is discussing the undocumented *static* (class) methods
> >
> > DBI->err
> > DBI->errstr
> >
> > which are simply defined as
> >
> > package DBI;
> > sub err { $DBI::err }
> > sub errstr { $DBI::errstr }
> >
> > No one should be using them. They were never documented.
> > Where the documentation refers to $h->err the $h means a *handle*.
> > The DBI in DBI->err is not a handle, it's a class name.
> >
> > For DBI v2 I'll probably leave them but make them issue a warning.
> > You have been warned :)
> >
> > Tim.
>
> Hmmm, I seem to have stirred up a hornets nest...
>
> I'm fairly certain I've seen examples of using that on this list
> (tho I'd probably have to download and grep the entire dbi-users
> archive to prove it). Probably one of those (initially inocuous)
> things that someone posted in an example and it turned into a "virus".
Yeap. A warning in v2 should prevent it spreading any further :)
Tim.