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