in reply to Re^2: Using If statement to set DBI preparein thread Using If statement to set DBI prepare
Start by using the correct operator: @rows == 1. The eq operator worked when comparing to 0, but it could very well be an exception.