Getting absolute path to perl executable for the current process
I think what you're looking for is $Config{perlpath}
.
If you want your code to be very portable you may have to append a file type to that value; this is described in the perlport
documentation. Otherwise all you need is this:
use Config;
my $perl = $Config{perlpath};