Um, Learning Perl explicitly assumes that you know how to program and so doesn't try very hard to teach basic programming practice. At least that was the case with earlier editions.

I'd suggest something aimed at beginning programmers like Beginning Perl. At least it is available for free, and it includes a chapter on how to write CGI programs. (Using CGI.pm's methods rather than a template system, but it is still likely to give some helpful ideas.)

Of course if you wanted to be nasty, then you could recommend starting with Structure and Interpretation of Computer Programs. (For those who don't know it, this is an excellent book. It is available online but I recommend buying a copy, reading it, and re-reading it every few years. I'm getting due to re-read it again. That said, it is pitched at a fairly high level, and for most people will push them to completely rethink how they think about programming.)

The book that I really wish I could get lots of people to read is Code Complete 2. Of course they never will since it is a big fat book with tons of important detail. But all of that detail is valuable knowledge that programmers really should know on some level. (Preferably you want it integrated into their bones so they just do it naturally. Hey, if I'm going to dream...)


In reply to Re^3: Perl/Html Question - rows are not aligned between different columns by tilly
in thread Perl/Html Question - rows are not aligned between different columns by Anonymous Monk

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.