The first one that I thought was pretty cool was something that took a memory model (in tabular format) and generated the necessary CREATE TABLE commands to build the table, complete with primary key and foreign key constraints. Then it took that output (in the Unix pipe-lining philosophy) and checked that each of the tables primary key types matched the foreign key types when they appeared in other tables; another script ordered the commands, so that the independent tables appeared first, followed by the dependent tables.

It impressed the hell out of the senior consultant on the contract, which didn't hurt. It definitely sold me on the value of Perl as an Open Source tool. I sure wish I'd made copies of those scripts. That was in about '98, and (I think) Perl 5 had just come out. Good times.

PS Oh yeah, all built without actual access to an SQL database .. I just looked up the appropriate syntax on-line. Such a geek.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.


In reply to Re: My first memorable Perl project was: by talexb
in thread My first memorable Perl project was: by duelafn

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.