2 package MooseX::Storage::Engine::IO::File;
8 our $AUTHORITY = 'cpan:STEVAN';
18 my $fh = IO::File->new($self->file, 'r')
19 || confess "Unable to open file (" . $self->file . ") for loading : $!";
20 return do { local $/; <$fh>; };
24 my ($self, $data) = @_;
25 my $fh = IO::File->new($self->file, 'w')
26 || confess "Unable to open file (" . $self->file . ") for storing : $!";
38 MooseX::Storage::Engine::IO::File - The actually file storage mechanism.
42 This provides the actual means to store data to a file.
52 =item B<store ($data)>
66 All complex software has bugs lurking in it, and this module is no
67 exception. If you find a bug please either email me, or add the bug
72 Chris Prather E<lt>chris.prather@iinteractive.comE<gt>
74 Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
76 =head1 COPYRIGHT AND LICENSE
78 Copyright 2007 by Infinity Interactive, Inc.
80 L<http://www.iinteractive.com>
82 This library is free software; you can redistribute it and/or modify
83 it under the same terms as Perl itself.