Invisible(ish) answer ahead, select with your mouse or have a look at the source to view it:
| $i contains 1, because, due to precedence, the expression is treated as (($i = 1),(2)) which is legal and this expression itself returns 2 in scalar context (the last element), and it returns (1, 2) otherwise. |
Am I right? :-)
-- TMTOWTDI
In reply to Re: Friday Code Quiz
by trantor
in thread Friday Code Quiz
by davorg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |