aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2019-01-25 20:27:49 +0000
committerSimon Tatham <anakin@pobox.com>2019-01-25 20:27:49 +0000
commitd7c873313e4e80f928377b5be8c6602b22154324 (patch)
tree8b1f09e294e06a883ef1cf55bd743974bb79074f
parentced51ada363d895eee796dd03923042f97f95321 (diff)
downloadpuzzles-d7c873313e4e80f928377b5be8c6602b22154324.zip
puzzles-d7c873313e4e80f928377b5be8c6602b22154324.tar.gz
puzzles-d7c873313e4e80f928377b5be8c6602b22154324.tar.bz2
puzzles-d7c873313e4e80f928377b5be8c6602b22154324.tar.xz
benchmark.pl: replace use of Perl <> with <<>>.
I've only just found out that it has the effect of treating the argv words not as plain filenames, but as arguments to Perl default 'open', i.e. if they end in | then the text before that is treated as a command. That's not what was intended!
-rwxr-xr-xbenchmark.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark.pl b/benchmark.pl
index 9876385..7ac48ab 100755
--- a/benchmark.pl
+++ b/benchmark.pl
@@ -9,7 +9,7 @@ my @presets = ();
my %presets = ();
my $maxval = 0;
-while (<>) {
+while (<<>>) {
chomp;
if (/^(.*)(#.*): ([\d\.]+)$/) {
push @presets, $1 unless defined $presets{$1};