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
In reply to Re: Re: Re: Re: creating an array of names
by broquaint
in thread creating an array of names
by bdawg613
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |