/
JP.pm
70 lines (49 loc) · 1.27 KB
/
JP.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package Acme::Porn::JP;
use strict;
use warnings;
our $VERSION = '0.02';
sub new {
my ($class, %args) = @_;
my $self = {};
return bless $self, $class;
}
sub _data {
my ( $self, $class ) = @_;
$class .= '::DATA';
my @list;
my $pos = tell $class;
map { chomp $_; push @list, $_; } (<$class>);
seek $class, $pos, 0;
return wantarray ? @list : \@list;
}
sub actress {
my $self = shift;
require Acme::Porn::JP::Actress;
return $self->_data('Acme::Porn::JP::Actress');
}
sub category {
my $self = shift;
require Acme::Porn::JP::Category;
return $self->_data('Acme::Porn::JP::Category');
}
1;
__END__
=head1 NAME
Acme::Porn::JP - Porn terms in Japan.
=head1 SYNOPSIS
use Acme::Porn::JP;
my $porn_jp = Acme::Porn::JP->new();
my $actress_list = $porn_jp->actress();
print $actress_list->[0] . "\n";
my $category_list = $porn_jp->category();
print $category_list->[10] . "\n";
=head1 DESCRIPTION
Acme::Porn::JP is term list about japanese porn a.k.a Adult Video .
Available method are 'actress' and 'category'.
=head1 AUTHOR
Yusuke Wada E<lt>yusuke at kamawada.comE<gt>
=head1 SEE ALSO
=head1 LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut