http://www.perlmonks.org?node_id=667029


in reply to Re: How to have universal perl script for C and D drive ?
in thread How to have universal perl script for C and D drive ?

File::Spec::Win32 also provides a splitpath() function which will split the path into $volume, $directories, $filename

So you could also grab the volume from there.
  • Comment on Re^2: How to have universal perl script for C and D drive ?