1) Use of single quotes: This is not possible, as I am generating the path at runtime based on some env vars and I think use of single-quotes would not expand the variables inside it.

2) I am not quite comfortable using 'command', because its like relying too much on a system file's existence (for example, lets say, MS decides to change the command.com's name, though very rare it maybe. I am very reluctant to use of such tied code, unless there is some pressing need). A function like 'system' is rather more guaranteed to not change over time or gets itself (functionality) modified in versions to come, if need be.

Anyhow, thanks for the pointers!

-sureshr

In reply to Re: Re: Re: Re: Portability question: Is there something like '#ifdef' in Perl? by sureshr
in thread Portability question: Is there something like '#ifdef' in Perl? by sureshr

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.