line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
408
|
|
|
408
|
|
2906
|
use strict; |
|
408
|
|
|
|
|
864
|
|
|
408
|
|
|
|
|
20452
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package HTML::FormFu::Literal; |
4
|
|
|
|
|
|
|
# ABSTRACT: a FormFu literal |
5
|
|
|
|
|
|
|
$HTML::FormFu::Literal::VERSION = '2.07'; |
6
|
408
|
|
|
408
|
|
2319
|
use warnings; |
|
408
|
|
|
|
|
782
|
|
|
408
|
|
|
|
|
12140
|
|
7
|
|
|
|
|
|
|
|
8
|
408
|
|
|
408
|
|
2227
|
use HTML::FormFu::Constants qw( $EMPTY_STR ); |
|
408
|
|
|
|
|
4715
|
|
|
408
|
|
|
|
|
45675
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use overload |
11
|
102
|
|
|
102
|
|
198
|
'""' => sub { return join $EMPTY_STR, @{ $_[0] } }, |
|
102
|
|
|
|
|
462
|
|
12
|
408
|
|
|
408
|
|
6358
|
fallback => 1; |
|
408
|
|
|
|
|
3678
|
|
|
408
|
|
|
|
|
4680
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
15
|
70
|
|
|
70
|
0
|
141
|
my $class = shift; |
16
|
|
|
|
|
|
|
|
17
|
70
|
|
|
|
|
411
|
return bless \@_, $class; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub push { |
21
|
4
|
|
|
4
|
0
|
29
|
my ( $self, @args ) = @_; |
22
|
|
|
|
|
|
|
|
23
|
4
|
|
|
|
|
6
|
CORE::push( @{ $_[0] }, @args ); |
|
4
|
|
|
|
|
15
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub unshift { |
27
|
1
|
|
|
1
|
0
|
3
|
my ( $self, @args ) = @_; |
28
|
|
|
|
|
|
|
|
29
|
1
|
|
|
|
|
2
|
CORE::unshift( @{ $_[0] }, @args ); |
|
1
|
|
|
|
|
5
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=pod |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=encoding UTF-8 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
HTML::FormFu::Literal - a FormFu literal |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 VERSION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
version 2.07 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 AUTHOR |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Carl Franks <cpan@fireartist.com> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This software is copyright (c) 2018 by Carl Franks. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
57
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |