WWW::Dict::Zdic is a Zdic Chinese Dictionary interface.
SYNOPSIS
use WWW::Dict::Zdic;
my $dic = WWW::Dict::Zdic->new();
my $def = $dic->define("�Љ");
print YAML::Dump($def);
This module provides simple interface to zdic.net Chinese character dictionary website.
INTERFACE
new()
Object contrsuctor. Nothing special, no argument is needed here.
define( $character )
Return an arrayref of hashref. Each hashref presents a definition of the given Chinese
$character. Currently valid keys for that hashref are 'category' and 'definition'. 'category' refers to different sources of defintions on zdic.net web-site. Usually there are more then two of them.
parse_content( $string )
Internally used function, to parse HTML from word definition page.
Product's homepage
Requirements:
· Perl