The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Spreadsheet::Compare::Reader::FIX - Fixed-Width File Adapter for Spreadsheet::Compare

DESCRIPTION

This module provides a fetch interface for reading records from files with fixed width columns.

ATTRIBUTES

Spreadsheet::Compare::Reader::FIX implements the following attributes.

filehandle

(readonly) The filehandle for "filename".

filename

(readonly) The filename of the used input file for this reader. Use "files" for filename specification.

files

  possible values: <list of exactly 2 files>
  default: undef

Example:

  files:
    - ./left_dir/data.fix
    - ./right_dir/data.fix

Relative filenames will be interpreted releative to "rootdir"

has_lines

  possible values: <bool>
  default: 0

Indicate that the input file has newline characters at the end of each record.

record_format

  possible values: <perl unpack string>
  default: ''

Example:

  record_format: 'A3A5A25A31A20A20A3A1A8A8'

A perl unpack string to split the record into a list of values.

rootdir

Set by Spreadsheet::Compare during reader initialisation. Same as "rootdir" in Spreadsheet::Compare.

skip_after_head

  possible values: <integer>
  default: 0

Number of lines to skip after reading the header line.

skip_before_head

  possible values: <integer>
  default: 0

Number of lines to skip at the beginning of the files before reading the header line.

METHODS

Spreadsheet::Compare::Reader::FIX inherits or overwrites all methods from Spreadsheet::Compare::Reader.