Sprog::Gear::PerlCodeAP.3pm

Langue: en

Autres versions - même langue

Version: 2005-05-30 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Sprog::Gear::PerlCodeAP - convert 'list' data to 'pipe' data via Perl code

DESCRIPTION

This gear allows the user to define a snippet of Perl code that will examine the input rows and produce a 'pipe' output stream.

The user-supplied code snippet is wrapped with a small amount of boilerplate code:

   $r = \@row;
 
   RECORD: {
     # Perl snippet here
   }
 
 

The default behaviour is to produce no output at all.

The input record is available in both the array @row and the arrayref $r (one is an alias for the other). The user-supplied code should use "print" to send data to the next downstream gear.

Copyright 2004-2005 Grant McLean <grantm@cpan.org>

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