line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!perl |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1547
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
72
|
|
4
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
1
|
|
|
2
|
|
|
|
|
52
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
656
|
use Web::Machine; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
67
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
{ |
9
|
|
|
|
|
|
|
package HelloWorld::Resource; |
10
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
46
|
|
11
|
2
|
|
|
2
|
|
6
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
49
|
|
12
|
|
|
|
|
|
|
|
13
|
2
|
|
|
2
|
|
6
|
use parent 'Web::Machine::Resource'; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
10
|
|
14
|
|
|
|
|
|
|
|
15
|
3
|
|
|
3
|
|
16
|
sub content_types_provided { [{ 'text/html' => 'to_html' }] } |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub to_html { |
18
|
1
|
|
|
1
|
|
5
|
join "" => |
19
|
|
|
|
|
|
|
'', |
20
|
|
|
|
|
|
|
'', |
21
|
|
|
|
|
|
|
'Hello World Resource', |
22
|
|
|
|
|
|
|
'', |
23
|
|
|
|
|
|
|
'', |
24
|
|
|
|
|
|
|
'Hello World', |
25
|
|
|
|
|
|
|
'', |
26
|
|
|
|
|
|
|
'' |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Web::Machine->new( resource => 'HelloWorld::Resource' )->to_app; |