"Dave Cross" <[EMAIL PROTECTED]> writes:

> This foxed a few people here yesterday.
> 
> After running the following code, what does $i contain (and explain
> your answer).
> 
>   $i=1,2;

$i contains 1, because = binds tighter than ','. If said statement
were the last statement in a sub, said sub would return 2. And the
programmer who perpetrated said code would be receiving a stiff
talking to.

-- 
Piers Cawley
www.iterative-software.com


Reply via email to