in reply to Forking 100 processes, 5 at a time
it's a syntax error, i assume you mean $counter and not $$counter. you're dereferencing the scalar, which is giving you it's memory location. you can't assign to that, because it's a constant. you'll have to fix lines 178 and 184 as well.
i must say, this code doesn't look right. i'd use Parallel::ForkManager for this application -- it's a well-oiled wheel.
~Particle *accelerates*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Forking 100 processes, 5 at a time
by nagan (Initiate) on Jun 14, 2002 at 20:49 UTC |