man > Config::Perl::V

📛 NAME

Config::Perl::V - Structured data retrieval of perl -V output

🚀 Quick Reference

Use CaseCommandDescription
Get local perl configurationConfig::Perl::V::myconfig()📦 Returns full hash with build, env, config, inc
Parse a 'perl -V' text blockConfig::Perl::V::plv2hash($text)🔄 Convert text dump to structured hash
Get a summary of key infoConfig::Perl::V::summary($conf)📊 Arbitrary selection of configuration details
Compute MD5 signatureConfig::Perl::V::signature($conf)🔑 MD5 of summary (excludes config_args)

📋 SYNOPSIS

use Config::Perl::V;

my $local_config = Config::Perl::V::myconfig ();
print $local_config->{config}{osname};

📖 DESCRIPTION

🔧 $conf = myconfig ()

This function will collect the data described in "The hash structure" below, and return that as a hash reference. It optionally accepts an option to include more entries from %ENV. See "environment" below.

Note that this will not work on uninstalled perls when called with -I/path/to/uninstalled/perl/lib, but it works when that path is in $PERL5LIB or in $PERL5OPT, as paths passed using -I are not known when the -V information is collected.

🔄 $conf = plv2hash ($text [, ...])

Convert a sole 'perl -V' text block, or list of lines, to a complete myconfig hash. All unknown entries are defaulted.

📊 $info = summary ([$conf])

Return an arbitrary selection of the information. If no $conf is given, myconfig () is used instead.

🔑 $md5 = signature ([$conf])

Return the MD5 of the info returned by summary () without the config_args entry.

If Digest::MD5 is not available, it return a string with only 0's.

🏗️ The hash structure

The returned hash consists of 4 parts:

Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING USE_64_BIT_INT USE_LARGE_FILES
  Locally applied patches:
        defined-or
        MAINT24637
  Built under linux
  Compiled at Jun 13 2005 10:44:20
  @INC:
    /usr/lib/perl5/5.8.7/i686-linux-64int
    /usr/lib/perl5/5.8.7
    /usr/lib/perl5/site_perl/5.8.7/i686-linux-64int
    /usr/lib/perl5/site_perl/5.8.7
    /usr/lib/perl5/site_perl
    .

or

Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING MULTIPLICITY
                        PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP PERL_TRACK_MEMPOOL
                        PERL_USE_SAFE_PUTENV USE_ITHREADS
                        USE_LARGE_FILES USE_PERLIO
                        USE_REENTRANT_API
  Built under linux
  Compiled at Jan 28 2009 15:26:59

This information is not available anywhere else, including %Config, but it is the information that is only known to the perl binary.

The extracted information is stored in 5 entries in the "build" hash:

my $conf = Config::Perl::V::myconfig ({ env => qr/^ORACLE/ });
my $conf = Config::Perl::V::myconfig ([ env => qr/^ORACLE/ ]);

🤔 REASONING

This module was written to be able to return the configuration for the currently used perl as deeply as needed for the CPANTESTERS framework. Up until now they used the output of myconfig as a single text blob, and so it was missing the vital binary characteristics of the running perl and the optional applied patches.

🐛 BUGS

Please feedback what is wrong

📝 TODO

👤 AUTHOR

H.Merijn Brand <h.m.brand AT xs4all.nl>

📜 COPYRIGHT AND LICENSE

Copyright (C) 2009-2020 H.Merijn Brand

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Config::Perl::V
📛 NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION
🔧 $conf = myconfig () 🔄 $conf = plv2hash ($text [, ...]) 📊 $info = summary ([$conf]) 🔑 $md5 = signature ([$conf]) 🏗️ The hash structure
🤔 REASONING 🐛 BUGS 📝 TODO 👤 AUTHOR 📜 COPYRIGHT AND LICENSE

Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-21 08:48 @216.73.216.45
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^