use WWW::Wordnik::API; my %args = ( server_uri => 'http://api.wordnik.com/v4', api_key => 'my API key', version => '4', format => 'json', # json | xml | perl ); my $WN = WWW::Wordnik::API->new(%args); my $content = $WN->examples('waste'); print $content;