D'oh! You're absolutely right about the regexn (escaping periods). I've seen it several times from reading critiques of other nodes. Believe it or not I've been using Perl for 4.5 years and have never had to use regexen more than once or twice. Having complete control over your own input is nice and makes coding so much easier.

Fortunately, there are patient souls around to remind me. I've been playing the piano for 35 years but am still taking lessons. It keeps me honest.

I'll pursue both yours and John's leads before I make a decision. I might have to stick with the DOS VER backticks angle due to code size though. The majority of users that will be running this code won't have Perl (thus Perl2exe) and I know that each additional module requirement is going to cause a hit in areas of startup time and memory required.

The goal is not to make a perfect assessment, but to offer the user a reasonable guess as to which platform they are using (like setting a default for an OS picklist). If they don't know what OS they have, they can't possibly have already installed the correct version of the software this program will be referencing.

Thanks to both you and John for replying.

"I have not failed. I've just found 10,000 ways that won't work." -- Thomas Alva Edison


In reply to Re: Re: Windows Version Detection by jlongino
in thread Windows Version Detection by jlongino

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.