Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
A few friends of mine have sinned extensively with the PHP scripting language. However, now they feel that the time is ripe for them to repent and practice the ways of Perl. The question is, just how do I do that? Things are complicated by the fact that I'm relatively pure in that I hardly wrote a line of PHP code in my life.

I know that PHP is relatively similar to Perl, therefore making the learning curve substantially flat. Both Perl and PHP are procedural languages. Most importantly, they seem to share common heritage.

In order for me to be able to explain to a PHP minded guy what Perl is and is not, I think I have to figure answers to these questions, first:
  1. What does Perl have that PHP does not?
  2. Alternatively, what does PHP have that Perl doesn't?
  3. What does Perl do differently than PHP?
  4. Common pitfalls that PHP converts face the first time they start praticing Perl?

I'd sincerely appreciate it if some of the monks in our monastery who had former experience with PHP to figure answers to these questions (and probably other questions that I forgot to mention).

"There is no system but GNU, and Linux is one of its kernels." -- Confession of Faith

In reply to Preaching Perl gospel to PHP converts... by vladb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-03-19 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found