in reply to Re: Re: Re: creating an array of names
in thread creating an array of names
Using = when you mean == or eq can be very confusing.Which is why it is a good idea to put the the constant on left-hand side of a numerical comparison
So we get a nice compile-time error if we ever slip up with our numerical comparisons, hurrah!0 == $foo; # GOOD 0 = $foo; # BAD __output__ Can't modify constant item in scalar assignment at - line 2, near "$fo +o;" Execution of - aborted due to compilation errors.
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: creating an array of names
by tachyon (Chancellor) on Nov 11, 2002 at 19:31 UTC | |
|
Re: Re: Re: Re: Re: creating an array of names
by John M. Dlugosz (Monsignor) on Nov 11, 2002 at 19:43 UTC | |
|
Re: Re: Re: Re: Re: creating an array of names
by sauoq (Abbot) on Nov 11, 2002 at 21:39 UTC |