line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lingua::PTD::Dumper; |
2
|
|
|
|
|
|
|
$Lingua::PTD::Dumper::VERSION = '1.14'; |
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
29
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use parent 'Lingua::PTD'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=encoding UTF-8 |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Lingua::PTD::Dumper - Sub-module to handle PTD files in Dumper Format |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 SYNOPSIS |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
use Lingua::PTD; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
$ptd = Lingua::PTD->new( "file.dmp" ); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 DESCRIPTION |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Check L<> for complete reference. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 SEE ALSO |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
NATools(3), perl(1) |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 AUTHOR |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Alberto Manuel Brandão Simões, Eambs@cpan.orgE |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Copyright (C) 2010-2014 by Alberto Manuel Brandão Simões |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=cut |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub new { |
39
|
0
|
|
|
0
|
1
|
|
my ($class, $filename) = @_; |
40
|
0
|
|
|
|
|
|
my $self = do $filename; |
41
|
0
|
|
|
|
|
|
bless $self => $class #amen |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub _save { |
45
|
0
|
|
|
0
|
|
|
my ($self, $filename) = @_; |
46
|
|
|
|
|
|
|
|
47
|
0
|
0
|
|
|
|
|
open OUT, ">:utf8", $filename or return 0; |
48
|
0
|
|
|
|
|
|
select OUT; |
49
|
0
|
|
|
|
|
|
$self->dump; |
50
|
0
|
|
|
|
|
|
close OUT; |
51
|
|
|
|
|
|
|
|
52
|
0
|
|
|
|
|
|
return 1; |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
"This isn't right. This isn't even wrong."; |
56
|
|
|
|
|
|
|
__END__ |