From e5c80f9f68d34eed558db3fa466730f769b682b2 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Mon, 23 Feb 2026 08:00:14 +0100 Subject: [PATCH] Change 'foreach' to more idiomatic 'for' --- glv.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glv.pl b/glv.pl index c6d27b1..e519599 100755 --- a/glv.pl +++ b/glv.pl @@ -3,7 +3,7 @@ my $all = $ARGV[0] =~ /^-a|--all$/ ? 1 : 0; my @lines = `curl "https://gitlab.com/gitlab-org/gitlab-foss/-/raw/master/CHANGELOG.md" 2>/dev/null`; -foreach (@lines) { +for (@lines) { if (/^##\s+(\d+\.\d+\.\d+)\s+\((\d+-\d+-\d+)/) { print "$1 [$2]\n"; unless ($all) {