I recently had my first real Perl programming interview. I've used Perl for years in my consulting business, but the clients did not care what language I programmed in. However, this position is for an actual Perl programmer, so they wanted to see a sample of my work. Not a problem I thought, I've done lots of Perl programming.

But wait! There's a couple of requirements to this sample code

  1. Must be at least around1 100 lines long
  2. Must not contain many modules uses

Ummm....

Now I was stuck. Any Perl scripts I've written which do not require a module or two are just toy scripts under 25 lines in length. Everything else worth programming, I feel, can use a module or more. For example, if I'm programming a web application I'm likely reaching for CGI::Application, Class::DBI, and Template Toolkit to start unless it's extremely simple (more a script, and less an application.)

How would my fellow monks handle this situation? Unless you've written a module as example work, how do you show your Perl programming skills without relying on external modules, but still have an application that's around 100 lines in length?


1 Clarified that the interviewer was requesting around 100 lines. Not much less, and not much more.


In reply to Showing Sample Source Code without Modules by Belgarion

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.