i recently talked to my manager about a project i'm working on. we're using perl for it but he's mistrustful of "outside code". he said he wants to rely on dos as much as possible to do the work (this is a windows shop), so rather than use builtin functions like readdir, he wants me to use a system call to 'dir' and parse the output by hand.

hmm. readdir's been around for years and has been tested by thousands of programmers around the world. my homebrew has been around for 30 minutes and has been tested by... well, me - at least a little bit.

what's next? "we want you to use c for this project, but we don't trust stdio. you'll need to write your own. and no using printf to debug it!"


In reply to Roll your own! 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.