Mar. 27th, 2003

syntax

Mar. 27th, 2003 12:20 pm
eor: (Default)
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.

Profile

eor: (Default)
eor

December 2025

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

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

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