in reply to How to have universal perl script for C and D drive ?
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:\.
|
|---|