File Coverage

blib/lib/Lingua/PTD/Dumper.pm
Criterion Covered Total %
statement 12 21 57.1
branch 0 2 0.0
condition n/a
subroutine 4 6 66.6
pod 1 1 100.0
total 17 30 56.6


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