in reply to Re^2: $dbh->quote(..., SQL_INTEGER)
in thread $dbh->quote(..., SQL_INTEGER)

Checking the internals of an SV is almost always the wrong thing to do.

If you're happy to pass 0+$limit without checking for problems, you might as well interpolate that straight into the SQL rather than missing with quote().

Hugo