Sprog::help::connectors.3pm

Langue: en

Autres versions - même langue

Version: 2005-05-13 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

Understanding Connectors

The component parts of a Sprog machine are called gears. Gears have input and output connectors which are used to hook the gears together.

You can only connect two gears together if the output connector of the first gear matches the input connector of the second.

There are currently two types of connector:

Pipe Connectors

The pipe connector is an unstructured stream of data. It is most commonly used for passing text data line-by-line, but it can also be used for binary data streams such as image files.

Record Connectors

The record connector is used to pass structured data as a sequences of records. Each record is a Perl hash.

Generally if a gear has a record output connector, the help page for the gear will list what keys you can expect to find in each record hash.