The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

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.

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.