I'm taking a programming interview soon. I know there will be some Perl debugging. I'm a little bit rusty in Perl--actually, my head is currently filled with C++ instead.

So, I was hoping to find a resource for buggy Perl code. NO! Let me rephrase that...I'm looking for something like the book "How NOT to program in C++" (http://www.bookpool.com/sm/1886411956). I'm fairly certain nothing like that exists for Perl, but maybe there is some web tutorial someone knows about that has some examples to work through?

Maybe there's a Monk out there who feels like creating a few for me...? Or pointing out some on SOPW that were pretty good but straight forward examples? I'll be hunting cool Perl books later tonight, too, so any suggestions are welcome.

And if any of my interviewers are reading this, please ignore the question. 'K? :)

Thanks
jason.

In reply to Need Bad Code by SleepyJay

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.