Re: success of DBI->trace() calls?

2001-03-22 Thread Colin Meyer
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

RE: success of DBI->trace() calls?

2001-03-22 Thread Sterin, Ilya
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

Re: success of DBI->trace() calls?

2001-03-22 Thread Tim Bunce
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. > >

Re: success of DBI->trace() calls?

2001-03-07 Thread Colin Meyer
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-

Re: success of DBI->trace() calls?

2001-03-07 Thread Tim Bunce
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

RE: success of DBI->trace() calls?

2001-03-07 Thread Sterin, Ilya
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

success of DBI->trace() calls?

2001-03-06 Thread Colin Meyer
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