in reply to Re^4: What is the difference between |= and ||=?
in thread What is the difference between |= and ||=?

If no row was selected, then whose id is that? Sure smells fishy.
  • Comment on Re^5: What is the difference between |= and ||=?

Replies are listed 'Best First'.
Re^6: What is the difference between |= and ||=?
by Anonymous Monk on Apr 09, 2009 at 05:57 UTC

    The "id" was an example. But there are cases (especially when JOINS are involved) where some columns have NULL values or where rows are not yet inserted. In those instances, the particular value of the hash reference is undef.

      The "id" was an example.

      Which brings us back to my answer: It all depends on the situation. In the situation you gave, it doesn't seem right.