1Devel::FindPerl(3)    User Contributed Perl Documentation   Devel::FindPerl(3)
2
3
4

NAME

6       Devel::FindPerl - Find the path to your perl
7

VERSION

9       version 0.015
10

SYNOPSIS

12        use Devel::FindPerl 'find_perl_interpreter';
13        system find_perl_interpreter, '-e', '...';
14

DESCRIPTION

16       This module tries to find the path to the currently running perl. It
17       (optionally) exports the following functions:
18

FUNCTIONS

20   find_perl_interpreter($config = ExtUtils::Config->new)
21       This function will try really really hard to find the path to the perl
22       running your program. I should be able to find it in most
23       circumstances. Note that the result of this function will be cached for
24       any serialized value of $config. It will return a list that usually but
25       not necessarily is containing one element; additional elements are
26       arguments that must be passed to that perl for correct functioning.
27
28   perl_is_same($path, @arguments)
29       Tests if the perl in $path is the same perl as the currently running
30       one.
31

SECURITY

33       This module by default does things that are not particularly secure
34       (run programs based on external input). In tainted mode, it will try to
35       avoid any insecure action, but that may affect its ability to find the
36       perl executable.
37

SEE ALSO

39       ·   Probe::Perl
40
41           This module has much the same purpose as Probe::Perl, in fact the
42           algorithm is mostly the same as both are extracted from
43           Module::Build at different points in time. If I had known about it
44           when I extracted it myself, I probably wouldn't have bothered, but
45           now that I do have it there are a number of reasons for me to
46           prefer Devel::FindPerl over Probe::Perl
47
48           ·   Separation of concerns. P::P does 4 completely different things
49               (finding perl, managing configuration, categorizing platorms
50               and formatting a perl version. Devel::FindPerl is instead
51               complemented by modules such as ExtUtils::Config and
52               Perl::OSType.
53
54           ·   It handles tainting better. In particular,
55               "find_perl_interpreter" never returns a tainted value, even in
56               tainted mode.
57
58           ·   It was written with inclusion in core in mind, though the
59               removal of Module::Build from core after perl 5.20 may make
60               this point moot.
61

AUTHOR

63       Leon Timmermans <leont@cpan.org>, Randy Sims
64       <randys@thepierianspring.org>
65
67       This software is copyright (c) 2012 by Randy Sims, Leon Timmermans.
68
69       This is free software; you can redistribute it and/or modify it under
70       the same terms as the Perl 5 programming language system itself.
71
72
73
74perl v5.30.0                      2019-07-26                Devel::FindPerl(3)
Impressum