On Thu, Mar 22, 2001 at 08:04:35AM -0700, Sterin, Ilya wrote:
> Just a question, what are you using trace() for. It is mostly used for
> debugging, but in your case it sounds like it will be executed every
> time the program runs and keep appending to the file? What are you
> trying to achieve if
Bunce
To: Colin Meyer
Cc: '[EMAIL PROTECTED] '
Sent: 3/22/01 3:47 AM
Subject: Re: success of DBI->trace() calls?
On Wed, Mar 07, 2001 at 10:27:38PM -0800, Colin Meyer wrote:
>
> On Wed, Mar 07, 2001 at 05:16:02PM +, Tim Bunce wrote:
> > Ilya's suggestion is a good
On Wed, Mar 07, 2001 at 10:27:38PM -0800, Colin Meyer wrote:
>
> On Wed, Mar 07, 2001 at 05:16:02PM +, Tim Bunce wrote:
> > Ilya's suggestion is a good one.
> >
> > The next version of the DBI will at least generate a warn()'ing that
> > can be caught using $SIG{__WARN__} if you need to.
>
>
On Wed, Mar 07, 2001 at 09:49:45AM -0700, Sterin, Ilya wrote:
> Not sure if that will help your case, but you can open the file yourself and
> then assign the file handle to STDERR, that way you can check for the file
> open yourself.
>
> if (open(FILE, "file_name"))
> {
> *STDERR = *FILE;
> DBI-
On Tue, Mar 06, 2001 at 08:38:31PM -0800, Colin Meyer wrote:
> DBI'ers:
>
> Is it possible to programmatically check on the success of a call to
> DBI->trace() or $h->trace()?
>
> For example, I'd like to know when I have called
> DBI->trace(1, '/file/that/I/cant/write/to.log').
>
> Experime
olin Meyer
To: [EMAIL PROTECTED]
Sent: 03/06/2001 9:38 PM
Subject: success of DBI->trace() calls?
DBI'ers:
Is it possible to programmatically check on the success of a call to
DBI->trace() or $h->trace()?
For example, I'd like to know when I have called
DBI->trace
DBI'ers:
Is it possible to programmatically check on the success of a call to
DBI->trace() or $h->trace()?
For example, I'd like to know when I have called
DBI->trace(1, '/file/that/I/cant/write/to.log').
Experimentation (not documentation) shows that the return value of trace()
seems to be