in reply to Re^2: Odd "rows affected" values using DBI on MySQL
in thread Odd "rows affected" values using DBI on MySQL

"do" returns "0E0" if no rows are affected.
This will get your zero:
$rows_affected += 0;

Replies are listed 'Best First'.
Re^4: Odd "rows affected" values using DBI on MySQL
by LassiLantar (Monk) on Jul 24, 2004 at 20:46 UTC
    Okey dokey. Thanks! (/me smacks himself for not remembering that if you treat it like a number it behaves like a number. I love Perl)

    LassiLantar