Re: Perl is more intuitiveby sauoq (Abbot)
|on Aug 19, 2005 at 02:39 UTC||Need Help??|
What are your views?
PHP isn't Perl.
For Perl programmers, its apparent similarities to Perl tend to be more frustrating than helpful because they are only cosmetic similarities. Under the hood, the languages are very different from each other.
The example you give is usually the first that Perlers faced with learning PHP run into. It is also usually the first to be forgotten once familiarity starts to settle in. One that I banged my head on for a while was that Perl's concept of context doesn't translate into PHP. For instance, I had a PHP function defined to take multiple arguments and then spent far too long trying to figure out why I couldn't shove all those arguments into an array and call myfunc($array)... duh.
I think most experienced Perl programmers who are introduced to PHP for the first time tend to view PHP as an inferior if not downright dysfunctional Perl¹. It isn't. It's actually a decent language, designed primarily for a limited domain, that meets its requirements fairly well. But, PHP isn't Perl. If you keep that in mind while you learn it, you might have an easier time of it.
1. Well, I did anyway.
-sauoq "My two cents aren't worth a dime.";