Protocol::XMLRPC::Value::Boolean - XML-RPC array
my $true = Protocol::XMLRPC::Value::Boolean->new(1); my $true = Protocol::XMLRPC::Value::Boolean->new('true'); my $false = Protocol::XMLRPC::Value::Boolean->new(0); my $false = Protocol::XMLRPC::Value::Boolean->new('false');
XML-RPC boolean
new
Creates new Protocol::XMLRPC::Value::Boolean instance.
type
Returns 'boolean'.
value
my $boolean = Protocol::XMLRPC::Value::Boolean->new(1); # $boolean->value returns 1 my $boolean = Protocol::XMLRPC::Value::Boolean->new('false'); # $boolean->value returns 'false'
Returns serialized Perl5 boolean.
to_string
my $boolean = Protocol::XMLRPC::Value::Boolean->new(1); # $boolean->to_string is now '<boolean>1</boolean>'
XML-RPC boolean string representation.
Viacheslav Tykhanovskyi, vti@cpan.org.
vti@cpan.org
Copyright (C) 2009, Viacheslav Tykhanovskyi.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.
To install Protocol::XMLRPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Protocol::XMLRPC
CPAN shell
perl -MCPAN -e shell install Protocol::XMLRPC
For more information on module installation, please visit the detailed CPAN module installation guide.