WebService::UrbanDictionary::Term - The Term object filled by WebService::UrbanDictionary objects.
version 2.015
use WebService::UrbanDictionary; my $ud = WebService::UrbanDictionary->new; my $results = $ud->request('perl'); my $definition = $results->definition;
WebService::UrbanDictionary::Term objects are returned by the request(word) method of WebService::UrbanDictionary objects upon successfully retreiving data from UrbanDictionary.com's JSON API.
request(word)
definition
Returns either an array of hashes containing API data, or the first definition of the word depending on context. These elements can then be accessed with the methods in WebService::UrbanDictionary::Term::Definition.
WebService::UrbanDictionary::Term - Object for holding definitions and other data requested by WebService::UrbanDictionary.
WebService::UrbanDictionary
WebService::UrbanDictionary::Term::Definition
William Woodruff <william@tuffbizz.com>
This software is Copyright (c) 2015 by William Woodruff.
This is free software, licensed under:
The MIT (X11) License
To install WebService::UrbanDictionary, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::UrbanDictionary
CPAN shell
perl -MCPAN -e shell install WebService::UrbanDictionary
For more information on module installation, please visit the detailed CPAN module installation guide.