You are viewing the version of this documentation from Perl 5.28.3. View the latest version

CONTENTS

NAME

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

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.