If you're not married to File::Find...
use Config; print $Config{prefix},$/;
assuming that by 'Perl' you mean the directory where your perl was installed. If you mean the binary, use the perlpath key instead. pod
Updated:
You cannot rely upon ^X, because you are assuming certain builds of perl when you do so. CygWin acts as Unix:
$ uname CYGWIN_NT-5.0 $ perl -e 'print $^X,$/;' perl $ /usr/bin/perl -e 'print $^X,$/;' /usr/bin/perl
(Thanks to tye and bart for clarifying which perls show this behaviour.)
In reply to Re: Using File::Find to find drive (Win32)
by idsfa
in thread Using File::Find to find drive (Win32)
by FireBird34
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |