line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package CSV::Template; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
26117
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
43
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
5
|
use base "HTML::Template"; |
|
1
|
|
|
|
|
17
|
|
|
1
|
|
|
|
|
1842
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub quote_string { |
12
|
1
|
|
|
1
|
1
|
2185
|
my ($self, $string) = @_; |
13
|
|
|
|
|
|
|
# escape embedded double |
14
|
|
|
|
|
|
|
# quotes as two quotes |
15
|
1
|
|
|
|
|
5
|
$string =~ s/"/""/g; # " |
16
|
|
|
|
|
|
|
# since this is being called |
17
|
|
|
|
|
|
|
# we assume the do want to |
18
|
|
|
|
|
|
|
# quote the string |
19
|
1
|
|
|
|
|
5
|
return ('"' . $string . '"'); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub output { |
23
|
4
|
|
|
4
|
1
|
278
|
my ($self) = @_; |
24
|
4
|
|
|
|
|
29
|
my $output = $self->SUPER::output(); |
25
|
|
|
|
|
|
|
# remove any blank lines |
26
|
|
|
|
|
|
|
# intentional blank lines |
27
|
|
|
|
|
|
|
# should have one comma in them |
28
|
10
|
|
|
|
|
39
|
return join "\n" => grep { |
29
|
4
|
|
|
|
|
175
|
!/^\s*?$/ |
30
|
|
|
|
|
|
|
} split /\n/ => $output; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |