1Storable(3)           User Contributed Perl Documentation          Storable(3)
2
3
4

NAME

6       PDL::IO::Storable - helper functions to make PDL usable with Storable
7

SYNOPSIS

9         use Storable;
10         use PDL::IO::Storable;
11         $hash = {
12                   'foo' => 42,
13                   'bar' => zeroes(23,45),
14                 };
15         store $hash, 'perlhash.dat';
16

DESCRIPTION

18       "Storable" implements object persistence for Perl data structures that
19       can (in principle) contain arbitrary Perl objects. Complicated objects
20       must supply their own methods to be serialized and thawed.  This module
21       implements the relevant methods to be able to store and retrieve pid‐
22       dles via Storable.
23

FUNCTIONS

25       store
26
27       store a piddle using Storable
28
29         $a = random 12,10;
30         $a->store('myfile');
31
32       freeze
33
34       freeze a piddle using Storable
35
36         $a = random 12,10;
37         $frozen = $a->freeze;
38

BUGS

40       The packed piddles are not stored in a network transparent way. As a
41       result expect problems when moving "Storable" data containing piddles
42       across computers.
43
44       This could be fixed by amending the methods "pdlpack" and "pdlunpack"
45       appropriately. If you want this functionality feel free to submit
46       patches.
47
48       If you want to move piddle data across platforms I recommend
49       PDL::NetCDF as an excellent (and IMHO superior) workaround.
50

AUTHOR

52       Copyright (C) 2002 Christian Soeller <c.soeller@auckland.ac.nz> All
53       rights reserved. There is no warranty. You are allowed to redistribute
54       this software / documentation under certain conditions. For details,
55       see the file COPYING in the PDL distribution. If this file is separated
56       from the PDL distribution, the copyright notice should be included in
57       the file.
58
59
60
61perl v5.8.8                       2006-12-02                       Storable(3)
Impressum