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

April 2026

S M T W T F S
   1234
567891011
12131415161718
19202122232425
2627282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 21st, 2026 03:16 am
Powered by Dreamwidth Studios