mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Fix implicit split to @_. Also add 'use warnings', which would have
spotted it for me. [originally from svn r9605]
This commit is contained in:
@ -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];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user