15 Oct 2018 11:00:53 UTC
- Distribution: Devel-FindPerl
- Module version: 0.015
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (6435 / 0 / 0)
- KwaliteeBus factor: 1
- 64.79% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (13.56KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userLEONT Leon Timmermansand 2 contributors
- Tim Gim Yee
- SEE ALSO
- COPYRIGHT AND LICENSE
Devel::FindPerl - Find the path to your perl
use Devel::FindPerl 'find_perl_interpreter'; system find_perl_interpreter, '-e', '...';
This module tries to find the path to the currently running perl. It (optionally) exports the following functions:
This function will try really really hard to find the path to the perl running your program. I should be able to find it in most circumstances. Note that the result of this function will be cached for any serialized value of
$config. It will return a list that usually but not necessarily is containing one element; additional elements are arguments that must be passed to that perl for correct functioning.
Tests if the perl in
$pathis the same perl as the currently running one.
This module by default does things that are not particularly secure (run programs based on external input). In tainted mode, it will try to avoid any insecure action, but that may affect its ability to find the perl executable.
This module has much the same purpose as Probe::Perl, in fact the algorithm is mostly the same as both are extracted from Module::Build at different points in time. If I had known about it when I extracted it myself, I probably wouldn't have bothered, but now that I do have it there are a number of reasons for me to prefer Devel::FindPerl over Probe::Perl
Separation of concerns. P::P does 4 completely different things (finding perl, managing configuration, categorizing platorms and formatting a perl version. Devel::FindPerl is instead complemented by modules such as ExtUtils::Config and Perl::OSType.
It handles tainting better. In particular,
find_perl_interpreternever returns a tainted value, even in tainted mode.
It was written with inclusion in core in mind, though the removal of Module::Build from core after perl 5.20 may make this point moot.
Leon Timmermans <email@example.com>, Randy Sims <firstname.lastname@example.org>
This software is copyright (c) 2012 by Randy Sims, Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Devel::FindPerl, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Devel::FindPerl
For more information on module installation, please visit the detailed CPAN module installation guide.