Probe::Perl(3) | User Contributed Perl Documentation | Probe::Perl(3) |
Probe::Perl - Information about the currently running perl
version 0.03
use Probe::Perl; $p = Probe::Perl->new(); # Version of this perl as a floating point number $ver = $p->perl_version(); $ver = Probe::Perl->perl_version(); # Convert a multi-dotted string to a floating point number $ver = $p->perl_version_to_float($ver); $ver = Probe::Perl->perl_version_to_float($ver); # Check if the given perl is the same as the one currently running $bool = $p->perl_is_same($perl_path); $bool = Probe::Perl->perl_is_same($perl_path); # Find a path to the currently-running perl $path = $p->find_perl_interpreter(); $path = Probe::Perl->find_perl_interpreter(); # Get @INC before run-time additions @paths = $p->perl_inc(); @paths = Probe::Perl->perl_inc(); # Get the general type of operating system $type = $p->os_type(); $type = Probe::Perl->os_type(); # Access Config.pm values $val = $p->config('foo'); $val = Probe::Perl->config('foo'); $p->config('foo' => 'bar'); # Set locally $p->config_revert('foo'); # Revert
This module provides methods for obtaining information about the currently running perl interpreter. It originally began life as code in the "Module::Build" project, but has been externalized here for general use.
Randy W. Sims <randys@thepierianspring.org>
Based partly on code from the Module::Build project, by Ken Williams <kwilliams@cpan.org> and others.
Copyright 2005 Ken Williams and Randy Sims. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2013-08-08 | perl v5.34.0 |