I am using the following IF condition:
if ( $database_handle->Sql($statement) )
{
# code to catch and print any errors
}To me, this does not intuitively make sense, but it works. It does not make sense to me because in all my other IF conditions, whatever is enclosed in the parentheses is evaluated on whether it is true.
In my other IFs, if I want to catch the reverse condition, should the parenthetical item be false, I insert an exclamation mark, like so:
if ( ! $database_handle->Sql($statement) )
{
# code to catch and print any errors
}If I try the above condition, the command executes just fine, but flags an error. Why is this? It seems as though there is a hidden exclamation mark in there and inserting an exclamation mark to achieve a NOT condition merely makes for a double negative.
-- Sincerely,
Craig Cardimon, Programmer AUS Inc. (Knowledge Express Data Systems; 1-800-529-5337, ext. 24)
_______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
