aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2012-08-17 19:45:03 +0000
committerSimon Tatham <anakin@pobox.com>2012-08-17 19:45:03 +0000
commit200d6533bb315e5f69f926d15724016132cf6232 (patch)
treee269f99345f08a0c1c266c5765ddca2251452629
parentbbf800e49ee5965c21eb4a89116e7529d0d4954f (diff)
downloadpuzzles-200d6533bb315e5f69f926d15724016132cf6232.zip
puzzles-200d6533bb315e5f69f926d15724016132cf6232.tar.gz
puzzles-200d6533bb315e5f69f926d15724016132cf6232.tar.bz2
puzzles-200d6533bb315e5f69f926d15724016132cf6232.tar.xz
Fix implicit split to @_. Also add 'use warnings', which would have
spotted it for me. [originally from svn r9605]
-rwxr-xr-xwiniss.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/winiss.pl b/winiss.pl
index bd2ac05..7416ace 100755
--- a/winiss.pl
+++ b/winiss.pl
@@ -11,13 +11,15 @@
# 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;
open LST, "<", $lst;
while (<LST>) {
chomp;
- split /:/;
+ @_ = split /:/;
push @exes, $_[0];
$names{$_[0]} = $_[1];
}