Util/Overloading.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 21 / 21 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Util/Tie.pm ↑ Summary
1 package IO::Handle::Util::Overloading;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use asa 'IO::Handle';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 use overload (
9 '*{}' => sub {
10 10 ▶ my $self = shift;
Subroutine __ANON__: called CC=1 SCAR=0.0
11 10 require IO::Handle::Util;
12 10 return IO::Handle::Util::io_to_glob($self);
13 },
14  
15 # to quote overload.pm
16 #
17 # BUGS Even in list context, the iterator is currently called only
18 # once and with scalar context.
19 #
20 #'<>' => sub {
21 # if ( wantarray ) {
22 # shift->getlines;
23 # } else {
24 # shift->getline;
25 # }
26 #},
27  
28 3 fallback => 1,
29 3 ▶);
Subroutine BEGIN: called CC=1 SCAR=0.0
30  
31 # ex: set sw=4 et:
32  
33 3 __PACKAGE__
34  
35 __END__
« Util/Tie.pm ↑ Summary