in reply to precedence question
or#!/usr/bin/perl $a = 10; $a+=5;$a-=10; print "\n$a";
The += and -= are shortcuts that set the lefthand.. the $a = is not needed.#!/usr/bin/perl $a = 10; $a = $a + 5 - 10; print "\n$a";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: precedence question
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 |