line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Message::Passing::Output::STDOUT; |
2
|
2
|
|
|
2
|
|
1787
|
use Moo; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
13
|
|
3
|
2
|
|
|
2
|
|
650
|
use namespace::clean -except => 'meta'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
23
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
with 'Message::Passing::Role::Output'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub consume { |
8
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
9
|
0
|
|
|
|
|
|
local $|=1; |
10
|
0
|
|
|
|
|
|
print STDOUT shift() . "\n"; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
1; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Message::Passing::Output::STDOUT - STDOUT output |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 SYNOPSIS |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
message-pass --input STDIN --output STDOUT |
23
|
|
|
|
|
|
|
{"foo": "bar"} |
24
|
|
|
|
|
|
|
{"foo":"bar"} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 DESCRIPTION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Output messages to STDOUT |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 METHODS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 consume |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Consumes a message by printing it, followed by \n |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SEE ALSO |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
L |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 SPONSORSHIP |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This module exists due to the wonderful people at Suretec Systems Ltd. |
43
|
|
|
|
|
|
|
who sponsored its development for its |
44
|
|
|
|
|
|
|
VoIP division called SureVoIP for use with |
45
|
|
|
|
|
|
|
the SureVoIP API - |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 AUTHOR, COPYRIGHT AND LICENSE |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
See L. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |