GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PROTOCOL::XMLRPC::VALUE::ARRAY (3)

.ds Aq ’

NAME

Protocol::XMLRPC::Value::Array - XML-RPC array

CONTENTS

SYNOPSIS



    my $array = Protocol::XMLRPC::Value::Array->new(1, 2, 3);
    my $array = Protocol::XMLRPC::Value::Array->new([1, 2, 3]);
    my $array = Protocol::XMLRPC::Value::Array->new([1]);
    my $array = Protocol::XMLRPC::Value::Array->new(
        [Protocol::XMLRPC::Value::Double->new(1.2)]);



DESCRIPTION

XML-RPC array

ATTRIBUTES

CWdata



    my $data = $array->data;
    $data->[0]->value;



Holds elements as objects.

METHODS

CWnew

Creates new Protocol::XMLRPC::Value::Array instance. Elements can be provided as an array or as an array reference.

CWtype

Returns ’array’.

CWadd_data



    $array->add_data(1);
    $array->add_data([1]);
    $array->add_data(Protocol::XMLRPC::Value::String->new(foo));



Adds value to the array. Can be Perl5 scalar or any Protocol::XMLRCP::Value::* instance, including another array.

CWvalue



    my $array = Protocol::XMLRPC::Value::Array->new(1, 2, 3);
    my $arrayref = $array->value;
    # $arrayref is now [1, 2, 3]



Returns serialized Perl5 array reference.

CWto_string



    my $array = Protocol::XMLRPC::Value::Array->new(12);
    my $string = $array->to_string;
    # <array>
    #   <data>
    #     <value><i4>12</i4></value>
    #   </data>
    # </array>



XML-RPC array string representation.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PROTOCOL::XMLRPC::VALUE::ARRAY (3) 2011-05-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.