Tie::FlatFile::Array

Tie::FlatFile::Array is a Perl extension which treats a flatfile database as an array of arrays.
Download

Tie::FlatFile::Array Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Mumia Wotse
  • Publisher web site:
  • http://search.cpan.org/~mumiaw/File-FilterFuncs-0.53/lib/File/FilterFuncs.pod

Tie::FlatFile::Array Tags


Tie::FlatFile::Array Description

Tie::FlatFile::Array is a Perl extension which treats a flatfile database as an array of arrays. Tie::FlatFile::Array is a Perl extension which treats a flatfile database as an array of arrays.This module allows the programmer to treat a flatfile database as as array of arrays. For example, let's say you have a datafile that has fixed-length records like so: Field-name Type URL ASCII characters, length 30 Referals Integer, 4 bytes, binary in network orderIf you were going to use pack to create a record like this, you'd use a format string of A30N. Since Tie::FlatFile::Array does the packing and unpacking behind the scenes, you would use that pack format string in the call to tie: tie @flat, 'Tie::FlatFile::Array', 'data.file', O_RDWR | O_CREAT, 0644, { packformat => 'A30N' } or die("Tie failure: $!");To insert an item into the data file, you would assign an array reference to one of the array's elements like so: $flat = ; Requirements: · Perl


Tie::FlatFile::Array Related Software