in reply to Using File::Find to find drive (Win32)
use File::Which qw(which where); my $exe_path = which('perl'); # or my @paths = where('perl'); $drive_letter = substr($exe_path,0,1); print $drive_letter, "\n"; print $exe_path, "\n"; print join "\n", @paths;
|
|---|