line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Object::Iterate::Tester; |
2
|
5
|
|
|
5
|
|
2489
|
use strict; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
159
|
|
3
|
|
|
|
|
|
|
|
4
|
5
|
|
|
5
|
|
23
|
use vars qw($VERSION); |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
243
|
|
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
26
|
use warnings; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
111
|
|
7
|
5
|
|
|
5
|
|
20
|
no warnings; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
581
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
$VERSION = '1.146'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=encoding utf8 |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 NAME |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
Object::Iterate::Tester - test module that uses Object::Iterate |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 SYNOPSIS |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
use Object::Iterate qw( imap ); |
20
|
|
|
|
|
|
|
use Object::Iterate::Tester; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
my $object = Object::Iterate::Tester->new(); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
my @list = imap { $_ } $object; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 DESCRIPTION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SOURCE |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
This module is on Github: |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
http://github.com/briandfoy/Object-Iterate |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 AUTHOR |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
brian d foy, C<< >> |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Copyright © 2002-2022, brian d foy . All rights reserved. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify |
43
|
|
|
|
|
|
|
it under the terms of the Artistic License 2.0. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=cut |
46
|
|
|
|
|
|
|
|
47
|
4
|
|
|
4
|
0
|
378
|
sub new { bless [qw(a b c d e f)], shift } |
48
|
20
|
|
|
20
|
|
73
|
sub __more__ { scalar @{ $_[0] } } |
|
20
|
|
|
|
|
51
|
|
49
|
18
|
|
|
18
|
|
2305
|
sub __next__ { shift @{ $_[0] } } |
|
18
|
|
|
|
|
50
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |