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


NAME

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

Back to Top


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);

Back to Top


DESCRIPTION

This module provides simple read and write file interfaces.

Back to Top


METHODS

new
read
write
append

Back to Top


NOTE

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

Back to Top


SEE ALSO

the File::Data manpage

Back to Top


AUTHOR

Daisuke Murase <typester@cpan.org>

Back to Top


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.

Back to Top

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