Devel::FindPerl(3)
π Devel::FindPerl(3) β Find the path to your perl π
okay so bestie, welcome to Devel::FindPerl(3) from User Contributed Perl Documentation. This page is all about finding the path to your perl, and it's lowkey iconic. no cap.
πΈ NAME πΈ
Devel::FindPerl β find the path to your perl π«Ά
π VERSION π
version 0.016 β yes ma'am, that's the version β¨
π¦ SYNOPSIS π¦
the vibe is literally:
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 can (optionally) export the following functions, so you can pull them into your own code if that's your main character move:
π FUNCTIONS π
π find_perl_interpreter($config = ExtUtils::Config->new)
This function will try really really hard to find the path to the perl that's running your program. It should be able to find it in most circumstances. ngl, it's giving dedicated.
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 β contains one element; the 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. it's a little identity check for perls, periodt.
π¨ SECURITY π¨
π¨ security vibe check, bestie: 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. so like, be aware π
π SEE ALSO π
Probe::Perlβ okay so the tea is this module has much the same purpose asProbe::Perl; in fact the algorithm is mostly the same, because both are extracted fromModule::Buildat 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 preferDevel::FindPerloverProbe::Perl:- Separation of concerns.
P::Pdoes 4 completely different things (finding perl, managing configuration, categorizing platorms and formatting a perl version).Devel::FindPerlis instead complemented by modules such asExtUtils::ConfigandPerl::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::Buildfrom core after perl 5.20 may make this point moot.
- Separation of concerns.
πΈ AUTHOR πΈ
the icons behind this: 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.
okay that's the whole page, bestie π«Ά this little manual page is Devel::FindPerl(3) from User Contributed Perl Documentation, and the footer vibes are perl v5.42.0, dated 2022-07-02. go find that perl and slay πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Devel-FindPerl 0.016-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms