Leon Timmermans > Devel-FindPerl > Devel::FindPerl

Download:
Devel-FindPerl-0.012.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.012   Source  

NAME ^

Devel::FindPerl - Find the path to your perl

VERSION ^

version 0.012

SYNOPSIS ^

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

DESCRIPTION ^

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

FUNCTIONS ^

find_perl_interpreter($config = ExtUtils::Config->new)

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.

perl_is_same($path, @arguments)

Tests if the perl in $path is the same perl as the currently running one.

SECURITY ^

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.

SEE ALSO ^

AUTHOR ^

Leon Timmermans <leont@cpan.org>, Randy Sims <randys@thepierianspring.org>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: