At 06:41 PM 7/30/2002 -0400, John Porter wrote:
>Sean O'Rourke wrote:
> > I read that as "expressions are evaluated once", not "PMC's are accessed
> > once".  So something like
> >
> >     2 < $i++ < 23
> >
> > will do the expected -- increment $i once, keeping the result in a PMC
> > temporary.
>
>I don't see that.   $i++ increments the original PMC.

Here is a 3rd opinion ;)

$i++ is postfix so it evaluates $i in the expression before incrementing, 
so you do
need a temporary, but not to hold the result of the increment; to hold
the original value.

-Melvin


Reply via email to