Protocol::XMLRPC::Value::Integer - XML-RPC array
my $integer = Protocol::XMLRPC::Value::Integer->new(123);
XML-RPC integer
alias
XML-RPC integer can be represented as 'int' and 'i4'. This parameter is 'i4' by default, but you can change it to 'int'.
new
Creates new Protocol::XMLRPC::Value::Integer instance.
type
Returns 'integer'.
value
my $integer = Protocol::XMLRPC::Value::Integer->new(1); # $integer->value returns 1
Returns serialized Perl5 scalar.
to_string
my $integer = Protocol::XMLRPC::Value::Integer->new(1); # $integer->to_string is now '<i4>1</i4>' my $integer = Protocol::XMLRPC::Value::Integer->new(1, alias => 'int'); # $integer->to_string is now '<int>1</int>'
XML-RPC integer string representation.
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.