line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!perl |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1867
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
115
|
|
4
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
67
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
1217
|
use Web::Machine; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
89
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
{ |
9
|
|
|
|
|
|
|
package HelloWorld::Resource; |
10
|
2
|
|
|
2
|
|
21
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
60
|
|
11
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
65
|
|
12
|
|
|
|
|
|
|
|
13
|
2
|
|
|
2
|
|
12
|
use parent 'Web::Machine::Resource'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
14
|
|
14
|
|
|
|
|
|
|
|
15
|
3
|
|
|
3
|
|
25
|
sub content_types_provided { [{ 'text/html' => 'to_html' }] } |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub to_html { |
18
|
1
|
|
|
1
|
|
7
|
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; |