Acme-CPANLists-PERLANCAR
view release on metacpan or search on metacpan
lib/Acme/CPANLists/PERLANCAR/ArrayClassBuilder.pm view on Meta::CPAN
our @Module_Lists = (
{
summary => 'Class builders for array-backed classes',
description => <<'_',
This list catalogs class builders for classes that use array (instead of the
popular hash) as their backend storage.
Hash is the vastly popular backend for object due to its flexibility and
convenient mapping of hash keys to object attributes, but actually Perl objects
can be references to any kind of data (array, scalar, glob). Storing objects as
other kinds of references can be useful in terms of attribute access speed,
memory size, or other aspects. But they are not as versatile and generic as
hash.
_
entries => [
{module => 'Class::Accessor::Array'},
{module => 'Class::Accessor::Array::Glob'},
{module => 'Class::XSAccessor::Array'},
lib/Acme/CPANLists/PERLANCAR/ArrayClassBuilder.pm view on Meta::CPAN
This document describes version 0.26 of Acme::CPANLists::PERLANCAR::ArrayClassBuilder (from Perl distribution Acme-CPANLists-PERLANCAR), released on 2017-09-08.
=head1 MODULE LISTS
=head2 Class builders for array-backed classes
This list catalogs class builders for classes that use array (instead of the
popular hash) as their backend storage.
Hash is the vastly popular backend for object due to its flexibility and
convenient mapping of hash keys to object attributes, but actually Perl objects
can be references to any kind of data (array, scalar, glob). Storing objects as
other kinds of references can be useful in terms of attribute access speed,
memory size, or other aspects. But they are not as versatile and generic as
hash.
=over
=item * L<Class::Accessor::Array>
lib/Acme/CPANLists/PERLANCAR/Task/WorkingWithTree.pm view on Meta::CPAN
<pm:Role::TinyCommons::Tree>.
_
our @Module_Lists = (
{
summary => 'Working with tree data structure in Perl',
description => $text,
tags => ['task'],
entries => [
map { +{module=>$_} } $text =~ /`(\w+(?:::\w+)+)`/g
],
},
);
1;
# ABSTRACT: Working with tree data structure in Perl
__END__
=pod
t/00-compile.t view on Meta::CPAN
use IO::Handle;
open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";
my @warnings;
for my $lib (@module_files)
{
# see L<perlfaq8/How can I capture STDERR from an external command?>
my $stderr = IO::Handle->new;
diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} }
$^X, @switches, '-e', "require q[$lib]"))
if $ENV{PERL_COMPILE_TEST_DEBUG};
my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-e', "require q[$lib]");
binmode $stderr, ':crlf' if $^O eq 'MSWin32';
my @_warnings = <$stderr>;
waitpid($pid, 0);
is($?, 0, "$lib loaded ok");
shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/
( run in 1.151 second using v1.01-cache-2.11-cpan-49f99fa48dc )