Gabriel Weinberg > WWW-WolframAlpha > WWW::WolframAlpha::Query

Download:
WWW-WolframAlpha-1.10.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 1.0   Source  

NAME ^

WWW::WolframAlpha::Query

VERSION ^

version 1.10

SYNOPSIS ^

my $query = $wa->query( input => $input, assumption => '*C.pi-_*Movie-', );

if ($query->success) { foreach my $pod (@{$query->pods}) { if (!$pod->error) { foreach my $subpod (@{$pod->subpods}) { ... } } }

  if ($query->warnings->count) {
    ...
  }

 }

DESCRIPTION ^

SUCCESS

$query->success - 0/1, tells whether it was successful or not

$query->error - 0 or WWW::WolframAlpha::Error, tells whether there was an error or not

ATTRIBUTES

$query->timing

$query->parsetiming

$query->timedout

$query->numpods

$query->css

$query->scripts

$query->datatypes

SECTOINS

$query->pods - array of WWW::WolframAlpha::Pod elements

$query->assumptions - WWW::WolframAlpha::Assumptions object

$query->warnings - WWW::WolframAlpha::Warnings object

$query->sources - WWW::WolframAlpha::Sources object

$query->didyoumeans - WWW::WolframAlpha::Didyoumean object

DEBUGGING

$query->xml - raw XML

$query->xmlo - raw XML::Simple object

EXPORT

None by default.

NAME ^

WWW::WolframAlpha::Query - Perl object returned via $wa->query

SEE ALSO ^

WWW::WolframAlpha

AUTHOR ^

Gabriel Weinberg, <yegg@alum.mit.edu>

COPYRIGHT AND LICENSE ^

Copyright (C) 2009 by Gabriel Weinberg

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

AUTHOR ^

Gabriel Weinberg <yegg@alum.mit.edu>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2009 by Gabriel Weinberg.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: