in reply to Re^2: faulty expression prob
in thread faulty expression prob

Um...somewhere along the line, someone dropped a "$" before "undef"..."$undef" != undef, but $undef = 'undef''; In answer to next Q, I did want assignments -- they needed to be evaluated or done left-to-right, where the 'right' side isn't done if the left side fails... If I wanted to use "==" instead of assignment, I would have preferred '&&' over 'and'. I try to use 'and' && 'or' when I don't want them interfering with an assignment.

Replies are listed 'Best First'.
Re^4: faulty expression prob
by ikegami (Patriarch) on Apr 04, 2008 at 00:32 UTC

    where the 'right' side isn't done if the left side fails...

    That's what $rv && does.

    Update: Hum, at first, I thought you you were disagreeing with what I posted, but I think you were just confirming what I said.