The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.


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


  use Storable;
  use PDL::IO::Storable;
  $hash = {
            'foo' => 42,
            'bar' => zeroes(23,45),
  store $hash, 'perlhash.dat';


Storable implements object persistence for Perl data structures that can contain arbitrary Perl objects. This module implements the relevant methods to be able to store and retrieve ndarrays via Storable.



store an ndarray using Storable

  $x = random 12,10;


freeze an ndarray using Storable

  $x = random 12,10;
  $frozen = $x->freeze;


Copyright (C) 2013 Dima Kogan <> Copyright (C) 2002 Christian Soeller <> All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the copyright notice should be included in the file.