foreach my $num ( $point->coordinates ) { ok looks_like_number($num), "... and $num should be a number"; }