| Protocol-XMLRPC documentation | view source | Contained in the Protocol-XMLRPC distribution. |
Protocol::XMLRPC::ValueFactory - value objects factory
my $array = Protocol::XMLRPC::ValueFactory->build([...]);
my $struct = Protocol::XMLRPC::ValueFactory->build({...});
my $integer = Protocol::XMLRPC::ValueFactory->build(1);
my $double = Protocol::XMLRPC::ValueFactory->build(1.2);
my $datetime = Protocol::XMLRPC::ValueFactory->build('19980717T14:08:55');
my $boolean = Protocol::XMLRPC::ValueFactory->build('true');
my $string = Protocol::XMLRPC::ValueFactory->build('foo');
This is a value object factory. Used internally. In synopsis you can see what types can be guessed.
buildBuilds new value object. If no instance was provided tries to guess type.
Viacheslav Tykhanovskyi, 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.
| Protocol-XMLRPC documentation | view source | Contained in the Protocol-XMLRPC distribution. |