blib/lib/WWW/Dict/Leo/Org.pm

filter: Statementstmt 17.1% 26 / 152 Branchbran 0.0% 0 / 42 Conditioncond 0.0% 0 / 29 MC/DCmcdc 0.0% 0 / 16 Subroutinesub 36.3% 8 / 22 Podpod 50.0% 4 / 8 totaltotal 14.1% 38 / 269 CC 36 SCAR 56.8
CC
36
Cov
12%
translate
650.0
row
42.0
hdr
20.0
CRAP 292.2
↑ Summary
1 #
2 # Copyleft (l) 2000-2016 Thomas v.D. <tlinden@cpan.org>.
3 #
4 # leo may be
5 # used and distributed under the terms of the GNU General Public License.
6 # All other brand and product names are trademarks, registered trademarks
7 # or service marks of their respective holders.
8  
9 package WWW::Dict::Leo::Org;
10 1 $WWW::Dict::Leo::Org::VERSION = "1.40";
11  
12 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use English '-no_match_vars';
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use Carp::Heavy;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use IO::Socket;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use MIME::Base64;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use HTML::TableParser;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 sub debug;
22  
23 sub new {
24 0 ▶ my ($class, %param) = @_;
Subroutine new: not called CC=3 SCAR=24.8
Pod undocumented
25 0 ▶ my $type = ref( $class ) || $class;
Condition0%0/3
ref $class || $class
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table0%0/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
26  
27 0 my %settings = (
28 "-Host" => "pda.leo.org",
29 "-Port" => 80,
30 "-UserAgent" => "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9",
31 "-Proxy" => "",
32 "-ProxyUser" => "",
33 "-ProxyPass" => "",
34 "-Debug" => 0,
35 "-SpellTolerance" => "standard", # on, off
36 "-Morphology" => "standard", # none, forcedAll
37 "-CharTolerance" => "relaxed", # fuzzy, exact
38 "-Language" => "en", # en2de, de2fr, fr2de, de2es, es2de
39  
40 "data" => {}, # the results
41 "section" => [],
42 "title" => "",
43 "segments" => [],
44 "Maxsize" => 0,
45 "Linecount" => 0,
46 );
47  
48 0 foreach my $key (keys %param) {
49 0 $settings{$key} = $param{$key}; # override defaults
50 }
51  
52 0 my $self = \%settings;
53 0 bless $self, $type;
54  
55 0 return $self;
56 }
57  
58 sub translate {
59 0 ▶ my($this, $term) = @_;
Subroutine translate: not called CC=25 SCAR=64.8
Pod documented
60  
61 0 my $linecount = 0;
62 0 my $maxsize = 0;
63 0 my @match = ();
64  
65 #
66 # form var transitions for searchLoc
67 #
68 0 my %lang = (
69 de2en => 1,
70 en2de => -1,
71 de2fr => 1,
72 fr2de => -1,
73 es2de => -1,
74 de2es => 1,
75 es => 0,
76 en => 0,
77 fr => 0,
78 speak => "ende"
79 );
80  
81 0 ▶ if ($this->{"-Language"}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($this->{"-Language"}) 0 0 0
82 0 ▶ if ($this->{"-Language"} =~ /fr/) {
Branch: 2 branches
BranchTrueFalseTotal
if ($this->{'-Language'} =~ /fr/) { } 0 0 0
elsif ($this->{'-Language'} =~ /es/) { } 0 0 0
83 # used for francaise translation
84 0 $lang{speak} = "frde";
85 }
86 elsif ($this->{"-Language"} =~ /es/) {
87 0 $lang{speak} = "esde";
88 }
89 0 ▶ if (exists $lang{$this->{"-Language"}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $lang{$this->{'-Language'}}) { } 0 0 0
90 0 $this->{"-Language"} = $lang{$this->{"-Language"}};
91 }
92 else {
93 0 croak "Unsupported language: " . $this->{"-Language"};
94 }
95 }
96  
97 #
98 # cut invalid values for parameters or set defaults if unspecified
99 #
100 my %form = (
101 spellToler => { mask => [ qw(standard on off) ], val => $this->{"-SpellTolerance"} || "standard" },
102 deStem => { mask => [ qw(standard none forcedAll) ], val => $this->{"-Morphology"} || "standard" },
103 cmpType => { mask => [ qw(fuzzy exact relaxed) ], val => $this->{"-CharTolerance"} || "relaxed" },
104 0 ▶ searchLoc => { mask => [ qw(-1 0 1) ], val => $this->{"-Language"} || "0" },
Condition0%0/8
$this->{'-SpellTolerance'} || 'standard'
l!l
00
$this->{'-Morphology'} || 'standard'
l!l
00
$this->{'-CharTolerance'} || 'relaxed'
l!l
00
$this->{'-Language'} || '0'
l!l
00
MC/DC0%0/1
$this->{'-SpellTolerance'} || 'standard'
$this->{'-SpellTolerance'}
MC/DC0%0/1
$this->{'-Morphology'} || 'standard'
$this->{'-Morphology'}
MC/DC0%0/1
$this->{'-CharTolerance'} || 'relaxed'
$this->{'-CharTolerance'}
MC/DC0%0/1
$this->{'-Language'} || '0'
$this->{'-Language'}
Truth table0%0/2
A
A= $this->{'-SpellTolerance'}
Aresult
11
00
Truth table0%0/2
A
A= $this->{'-Morphology'}
Aresult
11
00
Truth table0%0/2
A
A= $this->{'-CharTolerance'}
Aresult
11
00
Truth table0%0/2
A
A= $this->{'-Language'}
Aresult
11
00
105 );
106 0 my @form;
107 0 foreach my $var (keys %form) {
108 0 ▶ if (grep { $form{$var}->{val} eq $_ } @{$form{$var}->{mask}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (grep {$form{$var}{"val"} eq $_;} @{$form{$var}{"mask"};}) 0 0 0
109 0 push @form, $var . "=" . $form{$var}->{val};
110 }
111 }
112  
113 # add language
114 0 push @form, "lp=$lang{speak}";
115  
116 #
117 # process whitespaces
118 #
119 0 my $query = $term;
120 0 $query =~ s/\s\s*/ /g;
121 0 $query =~ s/\s/\+/g;
122 0 push @form, "search=$query";
123  
124 #
125 # make the query cgi'ish
126 #
127 0 my $form = join "&", @form;
128  
129 # store for result caching
130 0 $this->{Form} = $form;
131  
132 #
133 # check for proxy settings and use it if exists
134 # otherwise use direct connection
135 #
136 0 my ($url, $site);
137 0 my $ip = $this->{"-Host"};
138 0 my $port = $this->{"-Port"};
139 0 my $proxy_user = $this->{"-ProxyUser"};
140 0 my $proxy_pass = $this->{"-ProxyPass"};
141  
142 0 ▶ if ($this->{"-Proxy"}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($this->{'-Proxy'}) { } 0 0 0
143 0 my $proxy = $this->{"-Proxy"};
144 0 $proxy =~ s/^http:\/\///i;
145 0 ▶ if ($proxy =~ /^(.+):(.+)\@(.*)$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($proxy =~ /^(.+):(.+)\@(.*)$/) 0 0 0
146 # proxy user account
147 0 $proxy_user = $1;
148 0 $proxy_pass = $2;
149 0 $proxy = $3;
150 0 $this->debug( "proxy_user: $proxy_user");
151 }
152 0 my($host, $pport) = split /:/, $proxy;
153 0 ▶ if ($pport) {
Branch: 1 branch
BranchTrueFalseTotal
if ($pport) { } 0 0 0
154 0 $url = "http://$ip:$port/dictQuery/m-vocab/$lang{speak}/de.html";
155 0 $port = $pport;
156 }
157 else {
158 0 $port = 80;
159 }
160 0 $ip = $host;
161 0 $this->debug( "connecting to proxy:", $ip, $port);
162 }
163 else {
164 0 $this->debug( "connecting to site:", $ip, "port", $port);
165 0 $url = "/dictQuery/m-vocab/$lang{speak}/de.html";
166 }
167  
168 0 ▶ my $conn = new IO::Socket::INET(
Branch: 1 branch
BranchTrueFalseTotal
my $conn = "IO::Socket::INET"->new("Proto", "tcp", "PeerAddr", $ip, "PeerPort", $port) or die "Unable to connect to ${ip}:${port}: $!\n" 0 0 0
169 Proto => "tcp",
170 PeerAddr => $ip,
171 PeerPort => $port,
172 ) or die "Unable to connect to $ip:$port: $!\n";
173 0 $conn->autoflush(1);
174  
175 0 $this->debug( "GET $url?$form HTTP/1.0");
176 0 print $conn "GET $url?$form HTTP/1.0\r\n";
177  
178 # be nice, simulate Konqueror.
179 0 print $conn
180 qq($this->{"-UserAgent"}
181 Host: $this->{"-Host"}:$this->{"-Port"}
182 Accept: text/*;q=1.0, image/png;q=1.0, image/jpeg;q=1.0, image/gif;q=1.0, image/*;q=0.8, */*;q=0.5
183 Accept-Charset: iso-8859-1;q=1.0, *;q=0.9, utf-8;q=0.8
184 Accept-Language: en_US, en\r\n);
185  
186 0 ▶ if ($this->{"-Proxy"} and $proxy_user) {
Branch: 1 branch
BranchTrueFalseTotal
if ($this->{"-Proxy"} and $proxy_user) 0 0 0
Condition0%0/3
$this->{"-Proxy"} and $proxy_user
!ll&&!rl&&r
000
MC/DC0%0/2
$this->{"-Proxy"} and $proxy_user
$this->{"-Proxy"} $proxy_user
Truth table0%0/3
A and B
A= $this->{"-Proxy"}B= $proxy_user
ABresult
0X0
100
111
187 # authenticate
188 # construct the auth header
189 0 my $coded = encode_base64("$proxy_user:$proxy_pass");
190 0 $this->debug( "Proxy-Authorization: Basic $coded");
191 0 print $conn "Proxy-Authorization: Basic $coded\r\n";
192 }
193  
194 # finish the request
195 0 print $conn "\r\n";
196  
197 #
198 # parse dict.leo.org output
199 #
200 0 my @line = <$conn>;
201 0 ▶ close $conn or die "Connection failed: $!\n";
Branch: 1 branch
BranchTrueFalseTotal
close $conn or die "Connection failed: $!\n" 0 0 0
202 0 $this->debug( "connection: done");
203  
204 0 $site = join "", @line;
205  
206 0 ▶ if ($site !~ /HTTP\/1\.(0|1) 200 OK/i) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($site =~ m[HTTP/1\.(0|1) 200 OK]i) 0 0 0
207 0 ▶ if ($site =~ /HTTP\/1\.(0|1) (\d+) /i) {
Branch: 1 branch
BranchTrueFalseTotal
if ($site =~ m[HTTP/1\.(0|1) (\d+) ]i) 0 0 0
208 # got HTTP error
209 0 my $err = $2;
210 0 ▶ if ($err == 407) {
Branch: 1 branch
BranchTrueFalseTotal
if ($err == 407) { } 0 0 0
211 0 croak "proxy auth required or access denied!\n";
212 }
213 else {
214 0 ▶ if ($site =~ /Leider konnten wir zu Ihrem Suchbegriff/ ||
Branch: 1 branch
BranchTrueFalseTotal
if ($site =~ /Leider konnten wir zu Ihrem Suchbegriff/ or $site =~ /found no matches for your search/) { } 0 0 0
Condition0%0/3
$site =~ /Leider konnten wir zu Ihrem Suchbegriff/ or $site =~ /found no matches for your search/
l!l&&r!l&&!r
000
MC/DC0%0/2
$site =~ /Leider konnten wir zu Ihrem Suchbegriff/ or $site =~ /found no matches for your search/
$site =~ /Leider konnten wir zu Ihrem Suchbegriff/ $site =~ /found no matches for your search/
Truth table0%0/3
A or B
A= $site =~ /Leider konnten wir zu Ihrem Suchbegriff/B= $site =~ /found no matches for your search/
ABresult
1X1
011
000
215 $site =~ /found no matches for your search/
216 ) {
217 0 return ();
218 }
219 else {
220 0 croak "got HTTP error $err!\n";
221 }
222 }
223 }
224 }
225  
226 my @request = (
227 {
228 id => 2,
229 0 ▶ row => sub { $this->row(@_); },
Subroutine __ANON__: not called CC=1 SCAR=6.9
230 0 ▶ hdr => sub { $this->hdr(@_); }
Subroutine __ANON__: not called CC=1 SCAR=6.9
231 },
232 {
233 id => 3,
234 0 ▶ hdr => sub { $this->hdr(@_); },
Subroutine __ANON__: not called CC=1 SCAR=6.9
235 0 ▶ row => sub { $this->row(@_); }
Subroutine __ANON__: not called CC=1 SCAR=6.9
236 },
237 {
238 id => 4,
239 0 ▶ hdr => sub { $this->hdr(@_); },
Subroutine __ANON__: not called CC=1 SCAR=6.9
240 0 ▶ row => sub { $this->row(@_); }
Subroutine __ANON__: not called CC=1 SCAR=6.9
241 }
242 0 );
243 0 $this->{Linecount} = 0;
244 0 my $p = HTML::TableParser->new( \@request,
245 { Decode => 1, Trim => 1, Chomp => 1, DecodeNBSP => 1 } );
246 0 $site=~s/&#160;/\&nbsp\;/g;
247 0 $p->parse($site);
248  
249 # put the rest on the stack, if any
250 0 ▶ if (@{$this->{section}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (@{$this->{"section"};}) 0 0 0
251 0 $this->{data}->{ $this->{title} } = $this->{section};
252 0 push @{$this->{segments}}, $this->{title};
253 }
254  
255 # put back in order
256 0 my @matches;
257 0 foreach my $title (@{$this->{segments}}) {
258 0 push @matches, { title => $title, data => $this->{data}->{$title} };
259 }
260  
261 0 return @matches;
262 }
263  
264  
265 sub hdr {
266 0 ▶ my ( $this, $tbl_id, $line_no, $data, $udata ) = @_;
Subroutine hdr: not called CC=4 SCAR=30.0
Pod undocumented
267 0 ▶ if ($data->[1] && $data->[0] eq $data->[1]) {
Branch: 1 branch
BranchTrueFalseTotal
if ($data->[1] and $data->[0] eq $data->[1]) 0 0 0
Condition0%0/3
$data->[1] and $data->[0] eq $data->[1]
!ll&&!rl&&r
000
MC/DC0%0/2
$data->[1] and $data->[0] eq $data->[1]
$data->[1] $data->[0] eq $data->[1]
Truth table0%0/3
A and B
A= $data->[1]B= $data->[0] eq $data->[1]
ABresult
0X0
100
111
268 0 $this->debug("Probable start of a new section: $data->[1]");
269 0 ▶ if (@{$this->{section}}) {
Branch: 1 branch
BranchTrueFalseTotal
if (@{$this->{"section"};}) 0 0 0
270 0 $this->{data}->{ $this->{title} } = $this->{section};
271 0 push @{$this->{segments}}, $this->{title};
272 }
273  
274 0 $this->{title} = $data->[1];
275 0 $this->{section} = [];
276 }
277 }
278  
279 sub row {
280 #
281 # divide rows into titles and lang data.
282 # we get 2 items (left and right column), if they
283 # are equal, it's a segment title, otherwise it's
284 # segment content. left columns ending in HH:MM
285 # are forumposts and ignored as well as rows with
286 # empty left cells.
287 0 ▶ my ( $this, $tbl_id, $line_no, $data, $udata ) = @_;
Subroutine row: not called CC=6 SCAR=37.4
Pod undocumented
288  
289 0 ▶ if ($data->[1] && $data->[0] && $data->[0] ne $data->[1] && $data->[0] !~ /\d{2}:\d{2}$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($data->[1] and $data->[0] and $data->[0] ne $data->[1] and not $data->[0] =~ /\d{2}:\d{2}$/) 0 0 0
Condition0%0/9
$data->[1] and $data->[0] and $data->[0] ne $data->[1] and not $data->[0] =~ /\d{2}:\d{2}$/
!ll&&!rl&&r
000
$data->[1] and $data->[0] and $data->[0] ne $data->[1]
!ll&&!rl&&r
000
$data->[1] and $data->[0]
!ll&&!rl&&r
000
MC/DC0%0/4
$data->[1] and $data->[0] and $data->[0] ne $data->[1] and not $data->[0] =~ /\d{2}:\d{2}$/
$data->[1] $data->[0] $data->[0] ne $data->[1] not $data->[0] =~ /\d{2}:\d{2}$/
Truth table0%0/5
A and B and C and not(D)
A= $data->[1]B= $data->[0]C= $data->[0] ne $data->[1]D= not $data->[0] =~ /\d{2}:\d{2}$/
ABCDresult
0XXX0
10XX0
110X0
11100
11111
290 0 ▶ if (length($data->[0]) > $this->{Maxsize}) {
Branch: 1 branch
BranchTrueFalseTotal
if (length $data->[0] > $this->{"Maxsize"}) 0 0 0
291 0 $this->{Maxsize} = length($data->[0]);
292 }
293 0 $this->debug("line: $line_no, left: $data->[0], right: $data->[1]");
294 0 push @{$this->{section}}, { left => $data->[0], right => $data->[1] };
295 0 $this->{Linecount}++;
296 }
297 }
298  
299  
300 sub maxsize {
301 0 ▶ my($this) = @_;
Subroutine maxsize: not called CC=1 SCAR=6.9
Pod documented
302 0 return $this->{Maxsize};
303 }
304  
305 sub lines {
306 0 ▶ my($this) = @_;
Subroutine lines: not called CC=1 SCAR=6.9
Pod documented
307 0 return $this->{Linecount};
308 }
309  
310 sub form {
311 0 ▶ my($this) = @_;
Subroutine form: not called CC=1 SCAR=6.9
Pod documented
312 0 return $this->{Form};
313 }
314  
315 sub debug {
316 0 ▶ my($this, $msg) = @_;
Subroutine debug: not called CC=2 SCAR=17.9
Pod undocumented
317 0 ▶ if ($this->{"-Debug"}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($this->{"-Debug"}) 0 0 0
318 0 print STDERR "%DEBUG: $msg\n";
319 }
320 }
321  
322  
323 1 1;
324  
325 =encoding ISO8859-1
326  
327 =head1 NAME
328  
329 WWW::Dict::Leo::Org - Interface module to dictionary dict.leo.org
330  
331 =head1 SYNOPSIS
332  
333 use WWW::Dict::Leo::Org;
334 my $leo = new WWW::Dict::Leo::Org();
335 my @matches = $leo->translate($term);
336  
337 =head1 DESCRIPTION
338  
339 B<WWW::Dict::Leo::Org> is a module which connects to the website
340 B<dict.leo.org> and translates the given term. It returns an array
341 of hashes. Each hash contains a left side and a right side of the
342 result entry.
343  
344 =head1 OPTIONS
345  
346 B<new()> has several parameters, which can be supplied as a hash.
347  
348 All parameters are optional.
349  
350 =over
351  
352 =item I<-Host>
353  
354 The hostname of the dict website to use. For the moment only dict.leo.org
355 is supported, which is also the default - therefore changing the
356 hostname would not make much sense.
357  
358 =item I<-Port>
359  
360 The tcp port to use for connecting, the default is 80, you shouldn't
361 change it.
362  
363 =item I<-UserAgent>
364  
365 The user-agent to send to dict.leo.org site. Currently this is the
366 default:
367  
368 Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9
369  
370 =item I<-Proxy>
371  
372 Fully qualified proxy server. Specify as you would do in the well
373 known environment variable B<http_proxy>, example:
374  
375 -Proxy => "http://192.168.1.1:3128"
376  
377 =item I<-ProxyUser> I<-ProxyPass>
378  
379 If your proxy requires authentication, use these parameters
380 to specify the credentials.
381  
382 =item I<-Debug>
383  
384 If enabled (set to 1), prints a lot of debug information to
385 stderr, normally only required for developers or to
386 report bugs (see below).
387  
388 =back
389  
390 Parameters to control behavior of dict.leo.org:
391  
392 =over
393  
394 =item I<-SpellTolerance>
395  
396 Be tolerant to spelling errors.
397  
398 Default: turned on.
399  
400 Possible values: on, off.
401  
402 =item I<-Morphology>
403  
404 Provide morphology information.
405  
406 Default: standard.
407  
408 Possible values: standard, none, forcedAll.
409  
410 =item I<-CharTolerance>
411  
412 Allow umlaut alternatives.
413  
414 Default: relaxed.
415  
416 Possible values: fuzzy, exact, relaxed.
417  
418 =item I<-Language>
419  
420 Translation direction. Please note that dict.leo.org always translates
421 either to or from german. The following values can be used:
422  
423 =over
424  
425 =item de
426  
427 Alias for B<de2en> - german to english.
428  
429 =item fr
430  
431 Alias for B<de2fr> - german to french.
432  
433 =item es
434  
435 Alias for B<de2es> - german to espaniol.
436  
437 =item en2de
438  
439 english to german.
440  
441 =item fr2de
442  
443 french to german.
444  
445 =item es2de
446  
447 espaniol to german.
448  
449 =back
450  
451 =back
452  
453 =head1 METHODS
454  
455 =head2 translate($term)
456  
457 Use this method after initialization to connect to dict.leo.org
458 and translate the given term. It returns an array of hashes containing
459 the actual results.
460  
461 use WWW::Dict::Leo::Org;
462 use Data::Dumper;
463 my $leo = new WWW::Dict::Leo::Org();
464 my @matches = $leo->translate("test");
465 print Dumper(\@matches);
466  
467 which prints:
468  
469 $VAR1 = [
470 {
471 'data' => [
472 {
473 'left' => 'check',
474 'right' => 'der Test'
475 },
476 {
477 'left' => 'quiz (Amer.)',
478 'right' => 'der Test    [Schule]'
479 ],
480 'title' => 'Unmittelbare Treffer'
481 },
482 {
483 'data' => [
484 {
485 'left' => 'to fail a test',
486 'right' => 'einen Test nicht bestehen'
487 },
488 {
489 'left' => 'to test',
490 'right' => 'Tests macheneinen Test machen'
491 }
492 ],
493 'title' => 'Verben und Verbzusammensetzungen'
494 },
495 'data' => [
496 {
497 'left' => 'testing  adj.',
498 'right' => 'im Test'
499 }
500 ],
501 'title' => 'Wendungen und Ausdrücke'
502 }
503 ];
504  
505  
506 You might take a look at the B<leo> script how to process
507 this data.
508  
509 =head2 maxsize()
510  
511 Returns the size of the largest returned term (left side).
512  
513 =head2 lines()
514  
515 Returns the number of translation results.
516  
517 =head2 form()
518  
519 Returns the submitted form uri.
520  
521 =head1 SEE ALSO
522  
523 L<leo>
524  
525 =head1 COPYRIGHT
526  
527 WWW::Dict::Leo::Org - Copyright (c) 2007-2016 by Thomas v.D.
528  
529 L<http://dict.leo.org/> -
530 Copyright (c) 1995-2016 LEO Dictionary Team.
531  
532 =head1 AUTHOR
533  
534 Thomas v.D. <tlinden@cpan.org>
535  
536 =head1 HOW TO REPORT BUGS
537  
538 Use L<rt.cpan.org> to report bugs, select the queue for B<WWW::Dict::Leo::Org>.
539  
540 Please don't forget to add debugging output!
541  
542 =head1 VERSION
543  
544 1.40
545  
546 =cut
↑ Summary