line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package List::Objects::WithUtils::Array; |
2
|
|
|
|
|
|
|
$List::Objects::WithUtils::Array::VERSION = '2.028003'; |
3
|
208
|
|
|
208
|
|
80285
|
use strictures 2; |
|
208
|
|
|
|
|
3057
|
|
|
208
|
|
|
|
|
6833
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
require Role::Tiny; |
6
|
|
|
|
|
|
|
Role::Tiny->apply_roles_to_package( __PACKAGE__, |
7
|
|
|
|
|
|
|
qw/ |
8
|
|
|
|
|
|
|
List::Objects::WithUtils::Role::Array |
9
|
|
|
|
|
|
|
List::Objects::WithUtils::Role::Array::WithJunctions |
10
|
|
|
|
|
|
|
/ |
11
|
|
|
|
|
|
|
); |
12
|
|
|
|
|
|
|
|
13
|
208
|
|
|
208
|
|
34638
|
use Exporter (); |
|
208
|
|
|
|
|
250
|
|
|
208
|
|
|
|
|
8179
|
|
14
|
|
|
|
|
|
|
our @EXPORT = 'array'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub import { |
17
|
176
|
|
|
176
|
|
332
|
my $pkg = caller; |
18
|
208
|
|
|
208
|
|
664
|
{ no strict 'refs'; |
|
208
|
|
|
|
|
218
|
|
|
208
|
|
|
|
|
22757
|
|
|
176
|
|
|
|
|
218
|
|
19
|
176
|
|
|
|
|
200
|
${"${pkg}::a"} = ${"${pkg}::a"}; ${"${pkg}::b"} = ${"${pkg}::b"}; |
|
176
|
|
|
|
|
372
|
|
|
176
|
|
|
|
|
610
|
|
|
176
|
|
|
|
|
192
|
|
|
176
|
|
|
|
|
355
|
|
|
176
|
|
|
|
|
361
|
|
20
|
|
|
|
|
|
|
} |
21
|
176
|
|
|
|
|
9630
|
goto &Exporter::import |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
350
|
|
|
350
|
1
|
14934
|
sub array { __PACKAGE__->new(@_) } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=pod |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
List::Objects::WithUtils::Array - Array-type objects WithUtils |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SYNOPSIS |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
use List::Objects::WithUtils 'array'; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
my $array = array(qw/ a b c /); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 DESCRIPTION |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This class is the basic concrete implementation of |
43
|
|
|
|
|
|
|
L. Methods are documented there. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This class also consumes |
46
|
|
|
|
|
|
|
L, which adds the |
47
|
|
|
|
|
|
|
B & B junction-returning methods; see the POD for |
48
|
|
|
|
|
|
|
L and |
49
|
|
|
|
|
|
|
L for details. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head2 array |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Creates a new array object. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 AUTHOR |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Jon Portnoy |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Derived from L by Matt Phillips (CPAN: MATTP) et al |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Licensed under the same terms as Perl |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=cut |