Acme-CPANLists-PERLANCAR

 view release on metacpan or  search on metacpan

lib/Acme/CPANLists/PERLANCAR/ArrayClassBuilder.pm  view on Meta::CPAN

5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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

48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<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

44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
 
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 2.321 seconds using v1.01-cache-2.11-cpan-26ccb49234f )