1Storable(3) User Contributed Perl Documentation Storable(3)
2
3
4
6 PDL::IO::Storable - helper functions to make PDL usable with Storable
7
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
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
22 piddles via Storable.
23
25 store
26 store a piddle using Storable
27
28 $a = random 12,10;
29 $a->store('myfile');
30
31 freeze
32 freeze a piddle using Storable
33
34 $a = random 12,10;
35 $frozen = $a->freeze;
36
38 The packed piddles are not stored in a network transparent way. As a
39 result expect problems when moving "Storable" data containing piddles
40 across computers.
41
42 This could be fixed by amending the methods "pdlpack" and "pdlunpack"
43 appropriately. If you want this functionality feel free to submit
44 patches.
45
46 If you want to move piddle data across platforms I recommend
47 PDL::NetCDF as an excellent (and IMHO superior) workaround.
48
50 Copyright (C) 2002 Christian Soeller <c.soeller@auckland.ac.nz> All
51 rights reserved. There is no warranty. You are allowed to redistribute
52 this software / documentation under certain conditions. For details,
53 see the file COPYING in the PDL distribution. If this file is separated
54 from the PDL distribution, the copyright notice should be included in
55 the file.
56
57
58
59perl v5.12.3 2011-03-31 Storable(3)