Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have been using Parallel::ForkManager for some time, but I don't understand the place in the documentation that says The "and next" skips the internal loop in the parent process.
Today I tried to do the fork with the usual $fork_manager->start and next; within a subroutine, but I am getting an error, namely Exiting subroutine via next at ... line ...
Can someone explain the "next" part or help me understand what is going on? I know what "next" does in a while or for loop, I just don't understand it here. Do I need to post a minimal example to make it clear what my question is?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "next" in Parallel::ForkManager, and subroutines
by tobyink (Canon) on Apr 04, 2012 at 11:49 UTC | |
by thargas (Deacon) on Apr 04, 2012 at 18:56 UTC | |
by tobyink (Canon) on Apr 23, 2012 at 10:07 UTC | |
|
Re: "next" in Parallel::ForkManager, and subroutines
by mrguy123 (Hermit) on Apr 04, 2012 at 11:57 UTC | |
|
Re: "next" in Parallel::ForkManager, and subroutines
by Anonymous Monk on Apr 04, 2012 at 12:51 UTC | |
by locked_user sundialsvc4 (Abbot) on Apr 04, 2012 at 22:03 UTC |