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 'defined(..

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: Re: AW: AW: Use of uninitialized valued in concatenation....

2003-08-23 Thread Marcel Greter
-CUT-- my $val=$_||'NULL'; print qq($val); -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"; print qq($_); # Here is line

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($_); # Here is line 42 > } as Frank already pointed out, your trouble is the uninitialized $_ value you have in line 42 (which is exactly what the warning tells yo