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.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    FreezeThaw 0.43

    Download button

    No screenshots available
    Downloads: 361  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    FreezeThaw team | More programs
    Perl Artistic License / FREE
    May 18th, 2007, 04:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    FreezeThaw description

    FreezeThaw is a Perl module for converting Perl structures to strings and back.

    FreezeThaw is a Perl module for converting Perl structures to strings and back.

    SYNOPSIS

    use FreezeThaw qw(freeze thaw cmpStr safeFreeze cmpStrHard);
    $string = freeze $data1, $data2, $data3;
    ...
    ($olddata1, $olddata2, $olddata3) = thaw $string;
    if (cmpStr($olddata2,$data2) == 0) {print "OK!"}

    Converts data to/from stringified form, appropriate for saving-to/reading-from permanent storage.

    Deals with objects, circular lists, repeated appearence of the same refence. Does not deal with overloaded stringify operator yet.

    EXPORT

    Exportable

    freeze thaw cmpStr cmpStrHard safeFreeze.

    User API

    cmpStr

    analogue of cmp for data. Takes two arguments and compares them as separate entities.

    cmpStrHard

    analogue of cmp for data. Takes two arguments and compares them considered as a group.

    freeze

    returns a string that encupsulates its arguments (considered as a group). thawing this string leads to a fatal error if arguments to freeze contained references to GLOBs and CODEs.

    safeFreeze

    returns a string that encupsulates its arguments (considered as a group). The result is thawable in the same process. thawing the result in a different process should result in a fatal error if arguments to safeFreeze contained references to GLOBs and CODEs.

    thaw

    takes one string argument and returns an array. The elements of the array are "equivalent" to arguments of the freeze command that created the string. Can result in a fatal error (see above).

    Limitations:

    A lot of objects are blessed in some obscure packages by XSUB typemaps. It is not clear how to (automatically) prevent the UNIVERSAL methods to be called for objects in these packages.

    The objects which can survive freeze()/thaw() cycle must also survive a change of a "member" to an equal member. Say, after

    $a = [a => 3];
    $a->{b} = $a->{a};
    $a satisfies
    $a->{b} == $a->{a}

    This property will be broken by freeze()/thaw(), but it is also broken by

    $a->{a} = delete $a->{a};

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    convert Perl structures | structures to strings | Perl module | FreezeThaw | Perl | structures

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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