NAME

MCE::Grep - Provides a parallel grep implementation using Many-Core Engine.

VERSION

This document describes MCE::Grep version 1.499_001

SYNOPSIS

use MCE::Map;
use MCE::Grep;

my @s = mce_map { $_ * $_ } mce_grep { $_ % 5 == 0 } 1..10000;

DESCRIPTION

TODO ...

API

mce_grep
## mce_grep is imported into the calling script.

my @a = mce_flow { ... } 1..100;
init
MCE::Grep::init {

   ## This form is available for configuring MCE options
   ## before running.

   user_begin => sub {
      print "## ", MCE->wid, "\n";
   }
   user_end => sub {
      ...
   }
};
finish
MCE::Grep::finish();   ## This is called automatically.

PERSISTENT WORKERS

initp

TODO ...

mce_grepp

TODO ...

SEE ALSO

MCE::Flow, MCE::Loop, MCE::Map, MCE::Stream, MCE::Queue, MCE

AUTHOR

Mario E. Roy, <marioeroy AT gmail DOT com>

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.