> DBD::ODBC is returning strings for integers.  This results in incorrect values
> for  bit wise operators.  (for ex:- $e='16'; $f = '32'  print $e & $f returns
> 12 instead of zero ). Is there a setting that can help us return integers as
> 'integers'.

It's safer (and easier) to make your perl code independent of the returned
data type:

 $e='16';
 $f='32';
 print $e&$f; # prints '12'
 $e += 0; $f += 0;
 print $e&$f; # prints '0'


--      Peter Vanroose.

Reply via email to