|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Accessing Trac via XML::RPCby pc88mxer (Vicar) |
| on Jun 24, 2008 at 15:27 UTC ( [id://693750]=note: print w/replies, xml ) | Need Help?? |
|
This example in the XML::RPC documentation:
may also be written: The i4 designates the XML::RPC data type (4-byte integer). This example: will add a named parameter called 'name' with a data type of 'base64'. This is a way of passing arbitrary binary data. Since perl doesn't have a special way to designate boolean values, you have to do this to pass boolean typed parameters: It would be a good idea to make sure that $value is either 0 or 1. Here's a succinct overview of XML-RPC data types: http://www.xmlrpc.com/spec To learn more about anonymous subroutines (aka CODEREFs), have a look at perldoc perlsub.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||