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

Is your boss aware that the format of the output of dir is almost certainly changing in the next version of Windows, due to both the filesystem *and* the shell being completely overhauled? When that happens, readdir will continue to work as expected, but all legacy applications that hand-parse the dir output will break and have to be overhauled. This assumes your shop is fully committed to forever remaining a Microsoft-only shop. (If not, there are much more immediate and thorny issues with hand-rolling a readdir replacement.) It'll take you several months to hand-roll something as flexible and reliable as readdir, and it will have to be redone in 2006, if not sooner, meaning *more* months of testing.

Ask your boss if you should also code everything in machine code and rely on loops for timing.

Not using CPAN modules would be a questionable and suspect decision, but there could be arguments for it. Not using builtins sounds like something out of a Scott Adams book. If your boss is serious about this, you should be thinking about maybe taking some certifications or whatnot in your free time on the side, with a view toward getting your resume all nice and shiny-looking, in case you should happen to need it.


$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/

In reply to Re: Roll your own! by jonadab
in thread 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.