Andrew_Levenson has asked for the wisdom of the Perl Monks concerning the following question:
And noticed that while if I changed $value>10 to $value>=10 it ran it as "less than or equal to", but if I changed it to $value=>10 it kept running into the negative thousands.$value=15; do{ print "$value\n"; $value=$value-1; } while($value>10);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Syntax discrepancy?
by japhy (Canon) on Mar 08, 2006 at 16:14 UTC | |
|
Re: Syntax discrepancy?
by dragonchild (Archbishop) on Mar 08, 2006 at 16:15 UTC | |
|
Re: Syntax discrepancy?
by rinceWind (Monsignor) on Mar 08, 2006 at 16:15 UTC | |
|
Re: Syntax discrepancy?
by spiritway (Vicar) on Mar 08, 2006 at 16:25 UTC | |
|
Re: Syntax discrepancy?
by SamCG (Hermit) on Mar 08, 2006 at 20:43 UTC | |
|
Re: Syntax discrepancy?
by ambrus (Abbot) on Mar 08, 2006 at 19:32 UTC |