develooper Front page | perl.perl6.language | Postings from March 2005

Re: Junctions - feedback and desires

Thread Previous | Thread Next
From:
Leopold Toetsch
Date:
March 11, 2005 00:41
Subject:
Re: Junctions - feedback and desires
Message ID:
200503110803.j2B83Jf19530@thu8.leo.home
Rod Adams <rod@rodadams.net> wrote:

> Well
>     if 10 < $j < 1 { ... }
>     if 10 < $j { if $j < 1 { ... }}

> Could easily wind up with the same opcodes.

No. In the first case $j is evaluated just once. In the second case it's
evaluated twice.

leo

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About