WWW::Dict is a base class for WWW::Dict::* modules.
my $dict = WWW::Dict->new('Zdic');
my $definition = $dict->define( $word );
print YAML::Dump( $definition )
This module is the base class for WWW::Dict::* modules, also a loder class for them. It doesn't query to any dictionary website itself, but only dispatch request to a proper subclass.
new( dict_site )
Contructor, as usual, also a loader. You have to pass a string representing the dict site you want to load. It should be the same as one of the names under WWW::Dict::* namespace. For example, "Zdic" is a proper value.
define( word )
Query the dictionary website for the definition of word. Return a hashref with various keys depending on the acutal underlying module. Please see the document of those modules for it's keys.
(Note: this might be changed to adapt a proper super-set of keys, or return the definition as an object. However, so far it's still unclear how complicated it could be, so I just keep it simple for now.)