App::Muter::Chain - main programmatic interface to muter
version 0.003000
App::Muter::Registry->instance->load_backends(); my $chain = App::Muter::Chain->new($chain); while (<$fh>) { print $chain->process($_); } print $chain->final('');
This is the main programmatic (Perl) interface to muter. It takes an arbitrary chain and processes data incrementally, in whatever size chunks it's given.
Create a new chain object using the specified chain, which is identical to the argument to muter's -c option. If $reverse is passed, reverse the chain, as with muter's <-r> option.
$reverse
Process a chunk of data. Chunks need not be all the same size. Returns the transformed data, which may be longer or shorter than the input data.
Process the final chunk of data. If all the data has already been sent via the process method, simply pass an empty string.
brian m. carlson <sandals@crustytoothpaste.net>
This software is Copyright (c) 2016–2017 by brian m. carlson.
This is free software, licensed under:
The MIT (X11) License
To install App::Muter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Muter
CPAN shell
perl -MCPAN -e shell install App::Muter
For more information on module installation, please visit the detailed CPAN module installation guide.