|
Packit |
745572 |
package Filter::Util::Exec ;
|
|
Packit |
745572 |
|
|
Packit |
745572 |
require 5.006 ;
|
|
Packit |
745572 |
require XSLoader;
|
|
Packit |
745572 |
our $VERSION = "1.58" ;
|
|
Packit |
745572 |
|
|
Packit |
745572 |
XSLoader::load('Filter::Util::Exec');
|
|
Packit |
745572 |
1 ;
|
|
Packit |
745572 |
__END__
|
|
Packit |
745572 |
|
|
Packit |
745572 |
=head1 NAME
|
|
Packit |
745572 |
|
|
Packit |
745572 |
Filter::Util::Exec - exec source filter
|
|
Packit |
745572 |
|
|
Packit |
745572 |
=head1 SYNOPSIS
|
|
Packit |
745572 |
|
|
Packit |
745572 |
use Filter::Util::Exec;
|
|
Packit |
745572 |
|
|
Packit |
745572 |
=head1 DESCRIPTION
|
|
Packit |
745572 |
|
|
Packit |
745572 |
This module is provides the interface to allow the creation of I
|
|
Packit |
745572 |
Filters> which use a Unix coprocess.
|
|
Packit |
745572 |
|
|
Packit |
745572 |
See L<Filter::exec>, L<Filter::cpp> and L<Filter::sh> for examples of
|
|
Packit |
745572 |
the use of this module.
|
|
Packit |
745572 |
|
|
Packit |
745572 |
Note that the size of the buffers is limited to 32-bit.
|
|
Packit |
745572 |
|
|
Packit |
745572 |
=head2 B<filter_add()>
|
|
Packit |
745572 |
|
|
Packit |
745572 |
The function, C<filter_add> installs a filter. It takes one
|
|
Packit |
745572 |
parameter which should be a reference. The kind of reference used will
|
|
Packit |
745572 |
dictate which of the two filter types will be used.
|
|
Packit |
745572 |
|
|
Packit |
745572 |
If a CODE reference is used then a I<closure filter> will be assumed.
|
|
Packit |
745572 |
|
|
Packit |
745572 |
If a CODE reference is not used, a I<method filter> will be assumed.
|
|
Packit |
745572 |
In a I<method filter>, the reference can be used to store context
|
|
Packit |
745572 |
information. The reference will be I<blessed> into the package by
|
|
Packit |
745572 |
C<filter_add>.
|
|
Packit |
745572 |
|
|
Packit |
745572 |
See L<Filter::Util::Call> for examples of using context information
|
|
Packit |
745572 |
using both I<method filters> and I<closure filters>.
|
|
Packit |
745572 |
|
|
Packit |
745572 |
=head1 AUTHOR
|
|
Packit |
745572 |
|
|
Packit |
745572 |
Paul Marquess
|
|
Packit |
745572 |
|
|
Packit |
745572 |
=head1 DATE
|
|
Packit |
745572 |
|
|
Packit |
745572 |
11th December 1995.
|
|
Packit |
745572 |
|
|
Packit |
745572 |
=cut
|
|
Packit |
745572 |
|