ref: 200d6533bb315e5f69f926d15724016132cf6232
parent: bbf800e49ee5965c21eb4a89116e7529d0d4954f
author: Simon Tatham <anakin@pobox.com>
date: Fri Aug 17 15:45:03 EDT 2012
Fix implicit split to @_. Also add 'use warnings', which would have spotted it for me. [originally from svn r9605]
--- a/winiss.pl
+++ b/winiss.pl
@@ -11,6 +11,8 @@
# where `1234' is the revision number which will be encoded in the
# installer's version indicators.
+use warnings;
+
$rev = shift @ARGV;
($revclean=$rev) =~ s/M$//;
$lst = shift @ARGV;
@@ -17,7 +19,7 @@
open LST, "<", $lst;
while (<LST>) {
chomp;
- split /:/;
+ @_ = split /:/;
push @exes, $_[0];
$names{$_[0]} = $_[1];
}