just dave has asked for the wisdom of the Perl Monks concerning the following question:
Now, my first problem is that my error does not allways happen !! but when it does I get this reply:my $firstValue = getField($filename,$fieldName,$lastValue); my $secondValue = getField($secondFileName,$secondFieldName,$lastValue); my $sumValue = $firstValue + $secondValue; $hash_of_oids{$request->getOID()}->{'lastValue'} = $sumValue; $request->setValue($fieldtype, $sumValue);
nNow, the getField metho returns integers since I use it a lot before this part, moreover, it also prints the numbers ! so I know that $firstValue and $secondValue are returning the correct values.Non-integer value passed to setValue with ASN_INTEGER: type was 6
So, my guess is that $sumValue for some reson is no longer an integer, and that's why the setValue throws this error
but why ?
please help !
Thank you all
Dave
jdporter added missing markup
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wrong value used
by Tanktalus (Canon) on Dec 25, 2005 at 14:47 UTC | |
|
Re: Wrong value used
by idsfa (Vicar) on Dec 25, 2005 at 18:50 UTC |