Chad Kellerman wrote:
> Rob,
>
>    Thanks for the help.  I did what you suggested and cleaned up the code.
> But I am getting some strange errors:
>
> Use of uninitialized value in numeric gt (>) at ./script.pl line #.
>
> foreach $hostId ( @hostIds ) {
>
>     my $pid = undef;
>
>     $pid = fork if $CHILD_PIDS < $MAX_CHILDREN;
>
>          if( $pid > 0 ) {

Sorry, that's my fault: you can't compare an undefined value. Change
this to

        if ( $pid  ) {

I hope that's the only problem you get!

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to