Change 'print' to 'say'
And add the necessary 'use v5.10' for that, which carries the additional advantage of enabling 'use strict'.
This commit is contained in:
3
glv.pl
3
glv.pl
@@ -1,11 +1,12 @@
|
|||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
|
use v5.10;
|
||||||
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`;
|
||||||
|
|
||||||
for (@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";
|
say "$1 [$2]";
|
||||||
unless ($all) {
|
unless ($all) {
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user