in reply to Re^2: Graceful shutdowns and Parallel::ForkManager
in thread Graceful shutdowns and Parallel::ForkManager
sub max_processes { 5; }if you're trying to make this an inlined constant, you'll need to provide an empty prototype. i prefer making my constants ALL CAPS, and referring to them without a sigil. something like:
sub MAX_PROCESSES() { 5 }
and later...
$pm = Parallel::ForkManager->new(MAX_PROCESSES);
you'll find more info on this technique in perlsub.
~Particle *accelerates*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Graceful shutdowns and Parallel::ForkManager
by atcroft (Abbot) on Jul 26, 2002 at 04:48 UTC | |
by ChemBoy (Priest) on Jul 26, 2002 at 05:27 UTC | |
by atcroft (Abbot) on Jul 26, 2002 at 05:39 UTC |