On 01/12/2020 10:42, Dietmar Maurer wrote:
On 12/01/2020 10:41 AM Dietmar Maurer <diet...@proxmox.com> wrote:
for (my $i = 100; $i < 10000; $i++) {
- return $i if !defined($idlist->{$i});
+ return int($i) if !defined($idlist->{$i});
IMO, this does not solve the problem, because $i is already and int.
or does $idlist->{$i} converts $i to string??
Without testing anything, just my two cents, but we previously had the
issue where the JSON formatter in Perl would format a value based on
it's last usage context - and in case of a hash access that's probably a
string, even if $i "is" an int.
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel