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:
- What does Perl have that PHP does not?
- Alternatively, what does PHP have that Perl doesn't?
- What does Perl do differently than PHP?
- 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
|
-
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.
|