WDDXWDDX is a Perl module for writing and reading WDDX packets. | |
Download |
WDDX Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Scott Guelich and Andy Lester
- Publisher web site:
- http://search.cpan.org/~petdance/WDDX-1.02/WDDX.pm
WDDX Tags
WDDX Description
WDDX is a Perl module for writing and reading WDDX packets. WDDX is a Perl module for writing and reading WDDX packets.SYNOPSIS use WDDX; my $wddx = new WDDX; # Serialization example my $wddx_hash = $wddx->hash( { str => $wddx->string( "Welcome to WDDX!n" ), num => $wddx->number( -12.456 ), date => $wddx->datetime( date ), bool => $wddx->boolean( 1 ), arr => $wddx->array( ), rec => $wddx->recordset( , , , , , ] ), obj => $wddx->hash( { str => $wddx->string( "a string" ), num => $wddx->number( 3.14159 ), } ), bin => $wddx->binary( $img_data ), null => $wddx->null(), } ); print $wddx->header; print $wddx->serialize( $wddx_hash ); # Deserialization example my $wddx_request = $wddx->deserialize( $packet ); # Assume that our code expects an array $wddx_request->type eq "array" or die "Invalid request"; my $array_ref = $wddx_request->as_arrayref; Requirements: · Perl
WDDX Related Software