go ahead... be a heretic | |
PerlMonks |
Re: Re: Limiting the number of forksby robartes (Priest) |
on Oct 02, 2002 at 14:01 UTC ( [id://202279]=note: print w/replies, xml ) | Need Help?? |
Hi Abigail-II,
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
In Section
Seekers of Perl Wisdom
|
|