use Config; my $perl_with_path = $Config{perlpath};