WWW::DictWWW::Dict is a base class for WWW::Dict::* modules. | |
Download |
WWW::Dict Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Kang-min Liu
- Publisher web site:
- http://search.cpan.org/~gugod/
WWW::Dict Tags
WWW::Dict Description
WWW::Dict is a base class for WWW::Dict::* modules. WWW::Dict is a base class for WWW::Dict::* modules.SYNOPSIS use WWW::Dict; 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.INTERFACEnew( 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.) Requirements: · Perl
WWW::Dict Related Software