File::Data::Simple - Simple file r/w/a interface.


NAME

File::Data::Simple - Simple file r/w/a interface.


SYNOPSIS

  # read data
  my $data  = File::Data::Simple->read('./example.data');
  my @lines = File::Data::Simple->read('./example.txt');
  # or OOP way:
  my $f = File::Data::Simple->new;
  my $data = $f->read('./example.data');
  # write data
  File::Data::Simple->write('./exapmle.data', $data);
  # append data
  File::Data::Simple->append('./example.txt', $text);


DESCRIPTION

This module provides simple read and write file interfaces.


METHODS

new
read
write
append


NOTE

If you call this module's function multiple times, OOP way has more performance. Because OOP way reuse one FileHandle object created once.


SEE ALSO

the File::Data manpage


AUTHOR

Daisuke Murase <typester@cpan.org>


COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

 File::Data::Simple - Simple file r/w/a interface.