On Sunday 28 Feb 2010 22:08:21 Uri Guttman wrote:
> >>>>> "SO" == S O <[email protected]> writes:
>   SO> sorry guys i apologize for this question,
>   SO> how come when writing a program that these are not equivalent:
> 
>   SO> @files = readdir(D);
> 
>   SO> vs
> 
>   SO> readdir(D) = @files;
> 
> my question is why would you think they are the same? your same question
> can be asked about $x = $y vs $y = $x. do you know what = means in perl
> (and almost all common programming languages)?
> 

Now that I think about it, I think they may be confusing it with "==" 
(numerical equality). So:

20 + 4 == 24

Is indeed equivalent to:

24 == 20 + 4

But naturally "=" is assignment instead of equality.

Regards,

        Shlomi Fish


-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Rethinking CPAN - http://shlom.in/rethinking-cpan

Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to