diff options
| author | Simon Tatham <anakin@pobox.com> | 2012-08-17 19:45:03 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2012-08-17 19:45:03 +0000 |
| commit | 200d6533bb315e5f69f926d15724016132cf6232 (patch) | |
| tree | e269f99345f08a0c1c266c5765ddca2251452629 | |
| parent | bbf800e49ee5965c21eb4a89116e7529d0d4954f (diff) | |
| download | puzzles-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-x | winiss.pl | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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]; } |