Movatterモバイル変換


[0]ホーム

URL:


 / 
IPC-Filter-0.005
River stage one • 1 direct dependent • 1 total dependent
/IPC::Filter

NAME

IPC::Filter - filter data through an external process

SYNOPSIS

use IPC::Filter qw(filter);$compressed_data = filter($data, "bzip2");

DESCRIPTION

Thefilter function provided by this module passes data through an external command, thus providing filtering in non-pipeline situations.

FUNCTIONS

filter(DATA, SHELL_COMMAND)
filter(DATA, PROGRAM, ARGS ...)

The SHELL_COMMAND, or the PROGRAM with ARGS if more arguments are supplied, is executed as a separate process. (The arguments other than DATA are ultimately passed toexec; see"exec" in perlfunc(1) for explanation of the choice between the two forms.) The DATA (which must be either a simple string or a reference to a string) is supplied to the process on its standard input, and the process's standard output is captured and returned (as a simple string).

If the process exits with a non-zero exit code or on a signal, the function willdie. In the case of a non-zero exit code, thedie message will duplicate the process's standard error output; in any other case, the error output is discarded.

SEE ALSO

IPC::Open2

AUTHOR

Andrew Main (Zefram) <zefram@fysh.org>

COPYRIGHT

Copyright (C) 2004, 2007, 2010, 2011, 2017 Andrew Main (Zefram) <zefram@fysh.org>

LICENSE

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

Module Install Instructions

To install IPC::Filter, copy and paste the appropriate command in to your terminal.

cpanm

cpanm IPC::Filter

CPAN shell

perl -MCPAN -e shellinstall IPC::Filter

For more information on module installation, please visitthe detailed CPAN module installation guide.

Keyboard Shortcuts

Global
sFocus search bar
?Bring up this help dialog
GitHub
gpGo to pull requests
gigo to github issues (only if github is preferred repository)
POD
gaGo to author
gcGo to changes
giGo to issues
gdGo to dist
grGo to repository/SCM
gsGo to source
gbGo to file browse
Search terms
module: (e.g.module:Plugin)
distribution: (e.g.distribution:Dancer auth)
author: (e.g.author:SONGMU Redis)
version: (e.g.version:1.00)

[8]ページ先頭

©2009-2025 Movatter.jp