NAME

Tie::File::AnyData - Access the data of a disk file via a Perl array

SYNOPSIS

use Tie::File::AnyData;

my $coderef = sub {
## Code to retrieve one by one the records from a file
   };
tie my @data, 'Tie::File::AnyData', $file, code => $coderef;
## Use the tied array

DESCRIPTION

Tie::File::AnyData hacks Tie::File to allow it to manage any kind of text data. See the documentation of Tie::File for more details on the functionality of this module.

PARAMETERS

This module accepts the same parameters that Tie::File, plus:

code

A reference to a subroutine that must be able to retrieve one data record per call. This subroutine must accept one parameter: an already opened filehandle (or "undef" if there are not more records). For examples, see Tie::File::AnyData::Bio::Fasta or Tie::File::AnyData::CSV.

AUTHOR

Miguel Pignatelli

Please, send any comment to: motif@pause.org

The most recent version of this module, should be available at CPAN.

BUGS

Please report any bugs or feature requests to bug-tie-file-anydata at rt.cpan.org, or through the web interface at http://rp.cpan.org/NoAuth/ReportingBug.html?Queue=Tie-File-AnyData.

SUPPORT

You can find documentation for this module with the perldoc command:

perldoc Tie::File::AnyData

LICENSE

Copyright 2007 Miguel Pignatelli, all rights reserved.

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

WARRANTY

This module comes with ABSOLUTELY NO WARRANTY.

ACKNOWLEDGEMENTS

Thanks to C<kyle> at C<perlmonks> for suggestions during the implementation of this module