R. Joseph Newton wrote:
> Mark VanMiddlesworth wrote:
>> What's wrong with the syntax, especially line 12?

>>                  if ($arg = "-n") {$e = 0}   # Line 12
>
> You are asking, in the line above, whether your assignment of "-n" to
> the scalar $arg succeeded.  Answer: true, always.

Not quite. Mark is asking if the value contained in $arg is 'true'
after assigning "-n" to it. As everyone knows, N is always
true, while Y is often false. This is preferable:

    if ($arg = -x) {$f = 0}   # Line 13

as it is only true in the rarest of cases, and won't
spuriously set your $f variable to zero without a
second thought.

;-)

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to