Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    WDDX 1.02

    Download button

    No screenshots available
    Downloads: 526  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.2/5)
    8 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Scott Guelich and Andy Lester | More programs
    Perl Artistic License / FREE
    May 21st, 2008, 15:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    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( [
    $wddx->boolean( 0 ),
    $wddx->number( 10 ),
    $wddx->string( "third element" ),
    ] ),
    rec => $wddx->recordset(
    [ "NAME", "AGE" ],
    [ "string", "number" ],
    [
    [ "John Doe", 34 ],
    [ "Jane Doe", 25 ],
    [ "Fred Doe", 90 ],
    ]
    ),
    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;

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    WDDX reader | WDDX writer | Perl module | WDDX | reader | writer

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM