line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Clustericious::Coder::YAML; |
2
|
|
|
|
|
|
|
|
3
|
25
|
|
|
25
|
|
6439
|
use strict; |
|
25
|
|
|
|
|
54
|
|
|
25
|
|
|
|
|
670
|
|
4
|
25
|
|
|
25
|
|
117
|
use warnings; |
|
25
|
|
|
|
|
58
|
|
|
25
|
|
|
|
|
576
|
|
5
|
25
|
|
|
25
|
|
125
|
use YAML::XS (); |
|
25
|
|
|
|
|
48
|
|
|
25
|
|
|
|
|
312
|
|
6
|
25
|
|
|
25
|
|
374
|
use 5.010; |
|
25
|
|
|
|
|
80
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: YAML encoder for AutodataHandler |
9
|
|
|
|
|
|
|
our $VERSION = '1.27'; # VERSION |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub coder |
12
|
|
|
|
|
|
|
{ |
13
|
|
|
|
|
|
|
my %coder = ( |
14
|
|
|
|
|
|
|
type => 'text/x-yaml', |
15
|
|
|
|
|
|
|
format => 'yml', |
16
|
7
|
|
|
7
|
|
1927
|
encode => sub { YAML::XS::Dump($_[0]) }, |
17
|
0
|
|
|
0
|
|
0
|
decode => sub { YAML::XS::Load($_[0]) }, |
18
|
62
|
|
|
62
|
0
|
411
|
); |
19
|
|
|
|
|
|
|
|
20
|
62
|
|
|
|
|
162
|
\%coder; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=encoding UTF-8 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Clustericious::Coder::YAML - YAML encoder for AutodataHandler |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 VERSION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
version 1.27 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 AUTHOR |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Original author: Brian Duggan |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Current maintainer: Graham Ollis E<lt>plicease@cpan.orgE<gt> |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Contributors: |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Curt Tilmes |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Yanick Champoux |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This software is copyright (c) 2013 by NASA GSFC. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
56
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=cut |