Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Perl is more intuitive

by sauoq (Abbot)
on Aug 19, 2005 at 02:39 UTC ( #485006=note: print w/ replies, xml ) Need Help??


in reply to Perl is more intuitive

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.";


Comment on Re: Perl is more intuitive

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://485006]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2014-12-26 14:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls