From f7a95153d64973d3e3aadec95794867e564bb4ca Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Mon, 14 Jun 2021 13:40:40 +0200 Subject: [PATCH] diskmanage: fix determining array length $#* is the last index, not the length. Signed-off-by: Fabian Ebner --- PVE/Diskmanage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm index 55da2e5..ca6f0b7 100644 --- a/PVE/Diskmanage.pm +++ b/PVE/Diskmanage.pm @@ -915,7 +915,7 @@ sub wipe_blockdev { push $to_wipe->@*, "/dev/${part}" if -b "/dev/${part}"; }); - if (scalar($to_wipe->$#*) > 0) { + if (scalar($to_wipe->@*) > 0) { print "found child partitions to wipe: ". join(', ', $to_wipe->@*) ."\n"; } push $to_wipe->@*, $devpath; # put actual device last -- 2.39.2