Config::Perl::V - Structured data retrieval of perl -V output
use Config::Perl::V;
my $local_config = Config::Perl::V::myconfig ();
print $local_config->{config}{osname};
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.
Convert a sole 'perl -V' text block, or list of lines, to a complete myconfig hash. All unknown entries are defaulted.
Return an arbitrary selection of the information. If no $conf
is given, myconfig ()
is used instead.