in reply to Re: Return all the data from child to parent with Parallel::Forkmanager
in thread Return all the data from child to parent with Parallel::Forkmanager

Also, why not just:

my $ok = eval { read_genome(); read_mapfile(); read_GTF(); read_RM(); 1; }; if( ! $ok ) { warn "Got error while reading: $@"; };
  • Comment on Re^2: Return all the data from child to parent with Parallel::Forkmanager
  • Download Code

Replies are listed 'Best First'.
Re^3: Return all the data from child to parent with Parallel::Forkmanager
by Anonymous Monk on Aug 18, 2017 at 15:21 UTC
    ... because the whole purpose of this exercise was to try to read the files in parallel?

      Aaah - I had missed that within that loop, there also is a $pm->start and next.

      Still, I wouldn't use string-eval there :)