Fix implicit split to @_. Also add 'use warnings', which would have

spotted it for me.

[originally from svn r9605]
This commit is contained in:
Simon Tatham
2012-08-17 19:45:03 +00:00
parent bbf800e49e
commit 200d6533bb

View File

@ -11,13 +11,15 @@
# where `1234' is the revision number which will be encoded in the # where `1234' is the revision number which will be encoded in the
# installer's version indicators. # installer's version indicators.
use warnings;
$rev = shift @ARGV; $rev = shift @ARGV;
($revclean=$rev) =~ s/M$//; ($revclean=$rev) =~ s/M$//;
$lst = shift @ARGV; $lst = shift @ARGV;
open LST, "<", $lst; open LST, "<", $lst;
while (<LST>) { while (<LST>) {
chomp; chomp;
split /:/; @_ = split /:/;
push @exes, $_[0]; push @exes, $_[0];
$names{$_[0]} = $_[1]; $names{$_[0]} = $_[1];
} }