.------[ naveen prabhakar wrote (2002/10/24 at 10:43:50) ]------
 | 
 |  
 |  Hi,this might be a really silly question.
 |  
 |  what values are considered as uninitialized.how can I avoid this error.
 |  
 |  what does chunk 299 mean.the chunk number remains the same for a
 |  series of  such error statements.I have just tried to read from a file
 |  into an array of records and a hash of records
 |  
 |  Use of uninitialized value at ./tablecomp.pl line 780, <DB2> chunk 299
 |  
 |  the line at 780 is.
 |  
 |  if($db2array->[$i]->{$db2key} ne $raimah->{$id}->{$db2key})
 |  
 `-------------------------------------------------

    This is a warning telling you that either
    $db2array->[$i]->{$dbh2key} or $raimah->{$id}->{$dbh2key} was not
    set as you are reading chunk '299' of the file you are reading. 
    By not 'set' I mean there wasn't any data to put into one of these
    arrays or hash locations.

    There are three possible ways I can think of off the top of my head to
    get rid of this message: 

    1) Run without warnings ( not recommended ) 
    2) Make sure all values of $db2array and $raimah are initialized at
       some point no matter what is contained in the file 
    3) Make sure the contents of the file you are reading have values
       for all possible fields/values/etc. 

    Hope this helps. 

 ---------------------------------
   Frank Wiles <[EMAIL PROTECTED]>
   http://frank.wiles.org
 ---------------------------------


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to