in reply to Re: Limiting the number of forks
in thread Limiting the number of forks
Sorry to barge in to the middle of a discussion with a new question, but this code piqued my interest on your answer:
exit $code -> ($c) unless $pid;
In your discussion, you mentioned that $code should be a coderef. However, unless I'm mistaken (which is entirely possible) the above will not lead to the expected result in that case. I would rather expect something like:
exit &$code unless $pid;
I can make sense of your code if $code is in fact an object which implements $c methods (probably through autoloading).
Could you throw some light on the darkness of my confusion?
CU
Robartes-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Limiting the number of forks
by Abigail-II (Bishop) on Oct 02, 2002 at 14:07 UTC | |
by robartes (Priest) on Oct 02, 2002 at 14:22 UTC |