You can do the following to get the current working directory:
use Cwd; # a core module ;-) my $cwd = getcwd;
Then you can use paths relative to $cwd, or rewrite the paths depending on whether you're on C:\ or on D:\.
In reply to Re: How to have universal perl script for C and D drive ?
by moritz
in thread How to have universal perl script for C and D drive ?
by gasho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |