syntax

Mar. 27th, 2003 12:20 pm
eor: (Default)
[personal profile] eor
Perl and PHP are two quite closely related computer languages. My question is why some very demented PHP developer would have developed things in such a way that:

In Perl:
== is a numeric compare (i.e. is one equal to one point zero).
ne is an alphabetic compare (i.e. is abc equal to abc).

In PHP:
== is compares either strings or numbers depending on what you put on either side of it.

Now, there are reasons for both approaches let's not start a religious war about scripting languages. But it's a real PITA (pain in the algorithm) when you have reason to switch back and forth for different programs.

What does this have to do with anything? Nada. It just is.
(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

eor: (Default)
eor

December 2025

S M T W T F S
 123456
78910111213
1415 1617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 2nd, 2026 05:10 am
Powered by Dreamwidth Studios