in reply to Re: Working in parallel
in thread Working in parallel

Thank you for your quick reply! I've looked into Parallell::ForkManager and IPC::Shareable but unfortunately they use Storable to exchange data (even worse, forkmanager writes Storable data onto disk :)) Then I've found subs::parallel which looks promising, and AFAIK doesn't use serialization.
use Data::Dumper; use subs::parallel; my $baz = parallelize { my $h = {foo => 3}; return $h; }; # returns immediately $baz and 1; # blocks print Dumper $baz;

Replies are listed 'Best First'.
Re^3: Working in parallel
by BrowserUk (Patriarch) on Aug 20, 2010 at 11:48 UTC

    subs::parallel is *really* cute. It's been around since 2005, and yet I've never seen it before.

    So amazingly simple and yet so very powerful. Thanks for bringing to the community's attention.