in reply to Re^2: Can't understand function returning undefs
in thread Can't understand function returning undefs

There are no lists in scalar context! It's SCALAR context. What you have in
if (undef, undef) { # An extra set of parens doesn't matter. print "OK1\n"; }
is the comma operator in scalar context. Which evaluates its LHS, throws it away, then returns its RHS. Which is undef, and hence false.
According to the above
If with "above" you mean the post you're replying to, you notice I talk about list ASSIGNMENT. Not lists. Nor arrays.

Replies are listed 'Best First'.
Re^4: Can't understand function returning undefs
by ikegami (Patriarch) on Sep 24, 2010 at 22:03 UTC

    is the comma operator in scalar context.

    It's funny how you say something doesn't exist right before you say the thing that doesn't exist is what he has. (Sure, you used a different name for it.)