Re: [OT] Warnings from code when using perl-dbi

2007-08-16 Thread Peter J. Holzer
On 2007-08-16 18:30:52 +0800, Ow Mun Heng wrote: > On Thu, 2007-08-16 at 11:50 +0200, Peter J. Holzer wrote: > > You really want to know whether $first[$counter] is undef, not whether > > it has a length == 0 here, so you should test for that: > > > > if (!defined($first[$counter])) > > Tha

Re: [OT] Warnings from code when using perl-dbi

2007-08-16 Thread Ow Mun Heng
On Thu, 2007-08-16 at 10:38 +0100, Gary Stainburn wrote: > Hi > > Firstly, for an excelent general perl list, try [EMAIL PROTECTED] It's not > just for beginners. Ah.. Cool.. I'll subscribe there. > > Secondly, it looks like you're trying to access a field that isn't defined, > possibly by r

Re: [OT] Warnings from code when using perl-dbi

2007-08-16 Thread Ow Mun Heng
On Thu, 2007-08-16 at 11:50 +0200, Peter J. Holzer wrote: > On 2007-08-16 16:38:02 +0800, Ow Mun Heng wrote: > > Sorry, this isn't really a perl-dbi issue per-se. but I don't know where > > else to post this issue. I can't find a "Perl" mail-list. There's loads > > of list, but no perl-general. >

Re: [OT] Warnings from code when using perl-dbi

2007-08-16 Thread Peter J. Holzer
On 2007-08-16 16:38:02 +0800, Ow Mun Heng wrote: > Sorry, this isn't really a perl-dbi issue per-se. but I don't know where > else to post this issue. I can't find a "Perl" mail-list. There's loads > of list, but no perl-general. The newsgroup comp.lang.perl.misc is probably the best place to disc

Re: [OT] Warnings from code when using perl-dbi

2007-08-16 Thread Gary Stainburn
Hi Firstly, for an excelent general perl list, try [EMAIL PROTECTED] It's not just for beginners. Secondly, it looks like you're trying to access a field that isn't defined, possibly by running off the end of the row. I've re-written (but not tested) the routine slightly more perlified. See

[OT] Warnings from code when using perl-dbi

2007-08-16 Thread Ow Mun Heng
Sorry, this isn't really a perl-dbi issue per-se. but I don't know where else to post this issue. I can't find a "Perl" mail-list. There's loads of list, but no perl-general. Anyway.. pulling data from SQL-server using perl-dbi to be formatted as a CSV file. I had to do some tweaking to the outpu