Is there any way to correct this without removing warnings and strict? -----Original Message----- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 1:14 PM To: 'Balint, Jess' Subject: RE: Wierd Error
you have warnings and or use strict in your code on. -----Original Message----- From: Balint, Jess [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 1:00 PM To: '[EMAIL PROTECTED]' Subject: Wierd Error Hello all. I am getting wierd errors on the following piece of code. > 95: for( 0..$#vars ) { 96: if( defined( $vars[$_] ) ) { 97: $freqidx{$key}[$_] += $fields[$vars[$_]]; 98: } 99: } @vars are all numberic values and some values of @fields are "". Can $fields[$n] be defined as ""? Shouldn't perl just add "" as 0? The errors are as follows: Argument "" isn't numeric in add at ../20020128/pasummary.pl line 96, <INFILE> chunk 4258. Argument "" isn't numeric in add at ../20020128/pasummary.pl line 96, <INFILE> chunk 17733. Any help would be greatly appreciated. THanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]