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::STRUCT (3)

.ds Aq ’

NAME

Protocol::XMLRPC::Value::Struct - XML-RPC struct

CONTENTS

SYNOPSIS



    my $struct = Protocol::XMLRPC::Value::Struct->new(foo => bar);
    my $struct = Protocol::XMLRPC::Value::Struct->new({foo => bar});
    my $struct =
      Protocol::XMLRPC::Value::Struct->new(
        foo => Protocol::XMLRPC::Value::String->new(bar));



DESCRIPTION

XML-RPC struct

METHODS

CWnew

Creates new Protocol::XMLRPC::Value::Struct instance. Elements can be provided as a hash or as a hash reference.

CWtype

Returns ’struct’.

CWadd_member



    $struct->add_member(foo => bar);
    $struct->add_member({foo => bar});
    $struct->add_member(foo => Protocol::XMLRPC::Value::String->new(bar));



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

CWmembers



    my $struct = Protocol::XMLRPC::Value::Struct->new(foo => bar);
    my $members = $struct->members;



Returns hash reference where values are objects.

CWvalue



    my $struct = Protocol::XMLRPC::Value::Struct->new(foo => bar);
    my $structref = $struct->value;
    # $structref is now {foo => bar}



Returns serialized Perl5 hash reference.

CWto_string



    my $struct = Protocol::XMLRPC::Value::Struct->new(foo => bar);
    my $string = $struct->to_string;
    # <struct>
    #   <member>
    #     <name>foo</name>
    #     <value><string>bar</string></value>
    #   </member>
    # </struct>



XML-RPC struct string representation.

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


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

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