Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
If you evaluate the right set of parens first, you should get 5.#!/usr/bin/perl $a = 10; $a = ($a+=5)+($a-=10); print "\n$a";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: precedence question
by Zaxo (Archbishop) on Aug 09, 2002 at 20:44 UTC | |
by Anonymous Monk on Aug 09, 2002 at 20:48 UTC | |
|
Re: precedence question
by jynx (Priest) on Aug 09, 2002 at 20:47 UTC | |
|
Re: precedence question
by waswas-fng (Curate) on Aug 09, 2002 at 19:55 UTC | |
by Anonymous Monk on Aug 09, 2002 at 20:45 UTC | |
by waswas-fng (Curate) on Aug 09, 2002 at 22:10 UTC | |
by Aron (Initiate) on Aug 09, 2002 at 22:48 UTC |