in reply to Re^2: Can't understand function returning undefs
in thread Can't understand function returning undefs
is the comma operator in scalar context. Which evaluates its LHS, throws it away, then returns its RHS. Which is undef, and hence false.if (undef, undef) { # An extra set of parens doesn't matter. print "OK1\n"; }
According to the aboveIf 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 |