Change 'foreach' to more idiomatic 'for'
This commit is contained in:
1 parent
82a391b40c
commit
e5c80f9f68
1 file changed
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
my $all = $ARGV[0] =~ /^-a|--all$/ ? 1 : 0;
|
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`;
|
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+)/) {
|
if (/^##\s+(\d+\.\d+\.\d+)\s+\((\d+-\d+-\d+)/) {
|
||||||
print "$1 [$2]\n";
|
print "$1 [$2]\n";
|
||||||
unless ($all) {
|
unless ($all) {
|
||||||
|
|||||||
Reference in new issue
Block a user