1MooseX::Storage::IO::StUosrearblCeoFnitlrei(b3u)ted PerlMoDoosceuXm:e:nSttaotriaogne::IO::StorableFile(3)
2
3
4

NAME

6       MooseX::Storage::IO::StorableFile - An Storable File I/O role
7

VERSION

9       version 0.53
10

SYNOPSIS

12         package Point;
13         use Moose;
14         use MooseX::Storage;
15
16         with Storage('io' => 'StorableFile');
17
18         has 'x' => (is => 'rw', isa => 'Int');
19         has 'y' => (is => 'rw', isa => 'Int');
20
21         1;
22
23         my $p = Point->new(x => 10, y => 10);
24
25         ## methods to load/store a class
26         ## on the file system
27
28         $p->store('my_point');
29
30         my $p2 = Point->load('my_point');
31

DESCRIPTION

33       This module will "load" and "store" Moose classes using Storable. It
34       uses "Storable::nstore" by default so that it can be easily used across
35       machines or just locally.
36
37       One important thing to note is that this module does not mix well with
38       the other Format modules. Since Storable serialized perl data
39       structures in it's own format, those roles are largely unnecessary.
40
41       However, there is always the possibility that having a set of
42       "freeze/thaw" hooks can be useful, so because of that this module will
43       attempt to use "freeze" or "thaw" if that method is available.  Of
44       course, you should be careful when doing this as it could lead to all
45       sorts of hairy issues. But you have been warned.
46

METHODS

48       load ($filename)
49       store ($filename)
50

SUPPORT

52       Bugs may be submitted through the RT bug tracker
53       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Storage> (or
54       bug-MooseX-Storage@rt.cpan.org <mailto:bug-MooseX-
55       Storage@rt.cpan.org>).
56
57       There is also a mailing list available for users of this distribution,
58       at <http://lists.perl.org/list/moose.html>.
59
60       There is also an irc channel available for users of this distribution,
61       at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
62

AUTHORS

64       •   Chris Prather <chris.prather@iinteractive.com>
65
66       •   Stevan Little <stevan.little@iinteractive.com>
67
68       •   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
69
71       This software is copyright (c) 2007 by Infinity Interactive, Inc.
72
73       This is free software; you can redistribute it and/or modify it under
74       the same terms as the Perl 5 programming language system itself.
75
76
77
78perl v5.32.1                      2021-01-2M7ooseX::Storage::IO::StorableFile(3)
Impressum