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
In reply to Re: Re: Getting path info in a mixed UNIX / NT environment
by myocom
in thread Getting path info in a mixed UNIX / NT environment
by el-moe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |