Acme-CPANModules-ArrayClassBuilder
view release on metacpan or search on metacpan
VERSION
This document describes version 0.002 of
Acme::CPANModules::ArrayClassBuilder (from Perl distribution
Acme-CPANModules-ArrayClassBuilder), released on 2022-03-08.
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.
ACME::CPANMODULES ENTRIES
* Class::Accessor::Array - Generate accessors/constructor for
array-based object
Author: PERLANCAR <https://metacpan.org/author/PERLANCAR>
lib/Acme/CPANModules/ArrayClassBuilder.pm view on Meta::CPAN
our $VERSION = '0.002'; # VERSION
our $LIST = {
summary => 'List of 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/CPANModules/ArrayClassBuilder.pm view on Meta::CPAN
=head1 VERSION
This document describes version 0.002 of Acme::CPANModules::ArrayClassBuilder (from Perl distribution Acme-CPANModules-ArrayClassBuilder), released on 2022-03-08.
=head1 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.
=head1 ACME::CPANMODULES ENTRIES
=over
=item * L<Class::Accessor::Array> - Generate accessors/constructor for array-based object
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 0.460 second using v1.01-cache-2.11-cpan-49f99fa48dc )