in reply to Re: Getting path info in a mixed UNIX / NT environment
in thread Getting path info in a mixed UNIX / NT environment
Your idea will probably work fine. Assuming that the environment variable 'SOME_DRIVE' contains something like 'J:', you might also consider something like this:
$path = '/tmp/some/path'; $path = $ENV{SOME_DRIVE} . $path if $^O eq 'MSWin32'; # rest of code
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Getting path info in a mixed UNIX / NT environment
by el-moe (Scribe) on Dec 08, 2000 at 04:54 UTC | |
by myocom (Deacon) on Dec 08, 2000 at 04:56 UTC |