Thanks for the link. Interesting article, but I don't feel that it explained Perl very well. It's such a generic description that it one could pretty much do a s/Perl/other language/g; and it would still be mostly accurate. Two big nits with the article:

...Perl stands for Practical Extraction and Reporting Language...

No, it doesn't. Perl doesn't stand for anything. The above acronym is just one that someone (who?) came up with and it attained the status of Urban Programming Legend.

The other nit is a huge one. Check out the program the author lists for generating HTML for displaying photos. Here's one of the choice lines of code that's listed:

print HTMLFILE "\<P\>\<a href\=\"http\:\/\/index.html\"\>Return to hom +e page\<\/a\>\<\/font\>\n";

Yeah, that's going to make me want to run for the hills. Not only does the author use double quotes, forcing the escaping of embedded double quotes, she escapes many items that don't need to be escaped. Just glancing at that line will convince many programmers that Perl does indeed have too much punctuation. (nitpickers might notice that the double-quotes are superfluous since nothing is interpolated, but that's a minor point since Perl is smart enough to optimize this). Here's one way to write the above line:

print HTMLFILE '<P><a href="http://index.html">Return to home page</a> +</font>\n';

Aah! Much cleaner. Of course, there are other problems in the code that we'd probably point out here:

There are more problems than those above, but I think you get the idea. Selling people Perl by writing bad Perl is a terrible way to go.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.


In reply to (Ovid) Re: Article on Perl by Ovid
in thread Article on Perl by dru145

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.