in reply to Re: How to eliminate warning message on hash value?
in thread How to eliminate warning message on hash value?

If you use BerkeleyDB and you use c_get / db_put / etc., you get a '' on success and a 'Err message' on failure. So you would have to '!' the function call. Only for BerkeleyDB, I define my TRUE/FALSE in reverse. But as you pointed out, I should have done as you proposed and it would have been a true perl function call, only it still has to return to the application a '' for success.

Thank you

"Well done is better than well said." - Benjamin Franklin

  • Comment on Re^2: How to eliminate warning message on hash value?

Replies are listed 'Best First'.
Re^3: How to eliminate warning message on hash value?
by ikegami (Patriarch) on Dec 08, 2011 at 18:34 UTC
    Please don't define TRUE to be something false!!! Call it SUCCESS or something. And if it does return '' as you say, then you'll get a warning for using == since '' is not a number. Use eq to do a string comparison.