From: Thomas Lamprecht Date: Mon, 8 Jun 2020 13:57:34 +0000 (+0200) Subject: small nit follouwp: use $var->[0] to acccess array ref element X-Git-Url: https://git.proxmox.com/?p=pve-manager.git;a=commitdiff_plain;h=47399e41ade4db8fdd78bd39b215c184a7998711 small nit follouwp: use $var->[0] to acccess array ref element Signed-off-by: Thomas Lamprecht --- diff --git a/PVE/API2/VZDump.pm b/PVE/API2/VZDump.pm index 8ba20d17..9a55dc22 100644 --- a/PVE/API2/VZDump.pm +++ b/PVE/API2/VZDump.pm @@ -143,7 +143,7 @@ __PACKAGE__->register_method ({ } my $taskid; - $taskid = ${$vmids}[0] if scalar(@{$vmids}) == 1; + $taskid = $vmids->[0] if scalar(@{$vmids}) == 1; return $rpcenv->fork_worker('vzdump', $taskid, $user, $worker); }});