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 contain arbitrary Perl objects. This module implements the relevant
20 methods to be able to store and retrieve ndarrays via Storable.
21
23 store
24 store an ndarray using Storable
25
26 $x = random 12,10;
27 $x->store('myfile');
28
29 freeze
30 freeze an ndarray using Storable
31
32 $x = random 12,10;
33 $frozen = $x->freeze;
34
36 Copyright (C) 2013 Dima Kogan <dima@secretsauce.net> Copyright (C) 2002
37 Christian Soeller <c.soeller@auckland.ac.nz> All rights reserved. There
38 is no warranty. You are allowed to redistribute this software /
39 documentation under certain conditions. For details, see the file
40 COPYING in the PDL distribution. If this file is separated from the PDL
41 distribution, the copyright notice should be included in the file.
42
43
44
45perl v5.34.0 2021-08-16 Storable(3)