Rob Dixon wrote:
>
> Don't forget that we can't see bold emphasis on the mailing list: the
> posts are
> converted to plain text by the server. But your errors must be on the lines
>
>  >   $pos1 = int($pos1);
>  >   $dist1 = int($dist1*100)/100;
>
> and are because $pos1 and $dist1 are undefined, so you should look at function
> getFootPointDistToRoot() which is returning this value. Despite the  warnings,
> the undefined variables will evaluate as zero and so may be giving you the
> results you expect. Nevertheless these should clearly be numeric values and
> either the function needs correcting or, if you have no access to make
> changes there, the returned values should be explicitly forced to zero with
>
>   $pos1 != '0';
>   $dist1 != '0';

My apologies. That should be

  $pos1 ||= '0';
  $dist1 ||= '0';

Rob

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to