in reply to While count ---don't see it

What, exactly, do you expect
while($count < $process(@processlist)){ $count++; }
to do for you? Specifically, what do you think   $process(@processlist) evaluates to?

Replies are listed 'Best First'.
Re: Re: While count ---don't see it
by curtisb (Monk) on Mar 29, 2002 at 21:00 UTC
    Well, thanks, figured that out.
    while($count < @processlist){ $count++ }

    But, now my count is set to the number of the last process. It doesn't start at 0, even though I have it set in $count = 0;
    Any clues?
    curtisb
      Try
      while($count < $#processlist){ $count++ }


      "Nothing is sure but death and taxes" I say combine the two and its death to all taxes!
        or even ...
        $count = $#processlist - 1;
        Sorry, that didn't work. It just returned the value of 38.
        Thanks
        curtisb