AW: Use of uninitialized valued in concatenation....

2003-08-23 Thread B. Fongo
It is not a standard perl error message. I went through mod_perl doc at http://perl.apache.org/docs/general/perl_reference/perl_reference.html#T racing_Warnings_Reports and understand that, the error message appear if one fails to pass a value to a subroutine before using. Looking through my

AW: AW: Use of uninitialized valued in concatenation....

2003-08-23 Thread B. Fongo
Harkins'; [EMAIL PROTECTED] Betreff: Re: AW: Use of uninitialized valued in concatenation Did u check what's in line # 42 ? If u run the same script with same params as stand-alone, do u see the warning ? Sreeji --- B. Fongo [EMAIL PROTECTED] wrote: It is not a standard perl error message. I

Re: AW: Use of uninitialized valued in concatenation....

2003-08-23 Thread Sreeji K Das
Did u check what's in line # 42 ? If u run the same script with same params as stand-alone, do u see the warning ? Sreeji --- B. Fongo [EMAIL PROTECTED] wrote: It is not a standard perl error message. I went through mod_perl doc at

Re: AW: AW: Use of uninitialized valued in concatenation....

2003-08-23 Thread Udo Rader
Am Sat, 23 Aug 2003 09:48:05 + schrieb B. Fongo: foreach (@table_data) { print qq(td bgcolor='#d0d0d0'$_/td); # Here is line 42 } as Frank already pointed out, your trouble is the uninitialized $_ value you have in line 42 (which is exactly what

Re: Re: AW: AW: Use of uninitialized valued in concatenation....

2003-08-23 Thread Marcel Greter
-CUT-- my $val=$_||'NULL'; print qq(td DEFANGED_bgcolor=0#d0d0d0$val/td); -CUT-- This is not a very good solution. You would also catch the case where $_ is 0, which may should not happen. You would better do foreach (@table_data) { $_ = defined $_ ? $_ : NULL;

Re: Re: AW: AW: Use of uninitialized valued in concatenation....

2003-08-23 Thread Frank Maas
On Sat, Aug 23, 2003 at 01:55:03PM +0200, Marcel Greter wrote: This is not a very good solution. You would also catch the case where $_ is 0, which may should not happen. You would better do Yes... I always fall into that pithole. I think this is because I find the 'defined(...) ? ... : ...'

Re: AW: AW: Use of uninitialized valued in concatenation....

2003-08-23 Thread Stas Bekman
Frank Maas wrote: On Sat, Aug 23, 2003 at 01:55:03PM +0200, Marcel Greter wrote: This is not a very good solution. You would also catch the case where $_ is 0, which may should not happen. You would better do Yes... I always fall into that pithole. I think this is because I find the

AW: Use of uninitialized valued in concatenation....

2003-08-23 Thread B. Fongo
suggestions. Babs -Ursprüngliche Nachricht- Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Udo Rader Gesendet: Samstag, 23. August 2003 13:00 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: Use of uninitialized valued in concatenation Am Sat, 23 Aug 2003 09:48:05 + schrieb B. Fongo