Ok. To clarify a little...

The Environment vars will be set up correctly. And I forgot the "" around the path in the example... but that will be correct also. I looked at File::Path and it appears to be used for making and deleting directory trees. Not really what I'm looking for... I need a porting kind of solution for existing code.

There are 4 distinct drives(c:,j:,k:,l:) I have to access from the Win2000 systems. On unix they are simply paths. The unix systems are running in production as we speak.

My concern is that there are well over 50,000 lines of code now and I need a good and simple as possible solution to the drive mapping issue.

My idea is just that... an idea. I know there must be a better way because I'm relatively new to programming and how is it possibly for me to come up with the best idea as my first attempt?

So... looking back at my syntactically incorrect "idea"... can anyone tell me if the concept is correct or if there is a better way?

Prost,
Moe


In reply to Re: Getting path info in a mixed UNIX / NT environment by el-moe
in thread Getting path info in a mixed UNIX / NT environment by el-moe

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.