On Fri, Jan 04, 2019 at 04:12:08PM +0100, Dominik Csapak wrote: > (...) > @@ -156,13 +159,21 @@ sub get_recursive_values { > sub prepare_value { > my ($value) = @_; > > + if (looks_like_number($value)) { > + if ($value eq 'NaN' || $value =~ /^Inf/) {
Just noticed that the Inf check is anchored on the left. $ perl -e 'print(-9**9**9);' -Inf Maybe use POSIX::isinf and POSIX::isnan instead? _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel