Enabling Tracing
l Per handle
$h->trace($level);
$h->trace($level, $filename);
n Only effects that handle and any new child handles created from it
n Child handles get trace level of parent in effect at time of creation
l Global (internal to application)
DBI->trace(...);
n Sets effective global default minimum trace level
l Global (external to application)
n Enabled using DBI_TRACE environment variable
DBI_TRACE=digits       DBI->trace(digits);
DBI_TRACE=filename       DBI->trace(2, filename);
DBI_TRACE=digits=filename     DBI->trace(digits, filename);
13