| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Suffit; |
|
2
|
1
|
|
|
1
|
|
87545
|
use strict; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
30
|
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
|
1
|
|
|
|
|
5
|
|
|
|
1
|
|
|
|
|
62
|
|
|
4
|
1
|
|
|
1
|
|
507
|
use utf8; |
|
|
1
|
|
|
|
|
202
|
|
|
|
1
|
|
|
|
|
5
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=encoding utf8 |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Suffit - Suffit Library Bundle |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
#!/usr/bin/perl -w |
|
15
|
|
|
|
|
|
|
package MyApp; |
|
16
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
|
17
|
|
|
|
|
|
|
use parent 'Suffit'; |
|
18
|
|
|
|
|
|
|
sub init { shift->routes->any('/' => {text => 'Hello World!'}) } |
|
19
|
|
|
|
|
|
|
1; |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
package main; |
|
22
|
|
|
|
|
|
|
use Mojo::Server; |
|
23
|
|
|
|
|
|
|
Mojo::Server->new->build_app('MyApp', datadir => '/tmp')->start(); |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# Now try to run it: |
|
26
|
|
|
|
|
|
|
# perl myapp.pl daemon -l http://*:8080 |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Suffit Library Bundle combines multiple complementary libraries into a single |
|
31
|
|
|
|
|
|
|
cohesive package, enabling modular, scalable, and efficient development |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 EXAMPLE |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
See F file |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 HISTORY |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
See C file |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 TO DO |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
See C file |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
L, L, L, L |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 AUTHOR |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Serż Minus (Sergey Lepenkov) L Eabalama@cpan.orgE |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 COPYRIGHT |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Copyright (C) 1998-2026 D&D Corporation |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 LICENSE |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This program is distributed under the terms of the Artistic License Version 2.0 |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
See the C file or L for details |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=cut |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
our $VERSION = '1.01'; |
|
66
|
|
|
|
|
|
|
|
|
67
|
1
|
|
|
1
|
|
355
|
use parent qw/WWW::Suffit::Server/; |
|
|
1
|
|
|
|
|
278
|
|
|
|
1
|
|
|
|
|
5
|
|
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
1; |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
__END__ |