NAME

WWW::Ideone - send a program to ideone.com

SYNOPSIS

my $obj = WWW::Ideone->new ();
$obj->user_pass ('username', 'password');
# Get a list of languages
my %languages = $obj->get_languages ();
# Send your source code to Ideone.com
my $xml = $obj->send (command => 'createSubmission',
                      fields => {
                          sourceCode => 'print "hello world!\n"',
                          language => 3,
                          run => 'true',
                      });

METHODS

new

Make a new object.

user_pass

Set your user name and password (you need an API password, not ideone.com password).

send

Send a command to ideone.com.

get_languages

Get a list of languages in a hash.

DEPENDENCIES

WWW::Ideone uses the following modules for the following purposes

Template

to create the messages to send to ideone.com

LWP::UserAgent

to send web requests to ideone.com.

Carp

to report errors to the module user.

IO::Uncompress::Gunzip

to uncompress the reply from ideone.com.

EXPORTS

WWW::Ideone exports nothing.

GLOBAL VARIABLES

WWW::Ideone has the following global variables:

$soap_version

This is the version of the SOAP protocol you need to send to ideone.com.

$ideone_api_url

This is the URL of the ideone.com API (Application Programming Interface).

BUGS

"Bugs" is another word for "insects".

AUTHOR

Ben Bullock, <bkb@cpan.org>

COPYRIGHT AND LICENCE

You can use this under the same terms as Perl itself.