Mercurial > hg > batmud > misc
changeset 317:a4dff42fc40e misc
Make alloy parser less verbose.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 30 Dec 2015 12:21:00 +0200 |
parents | fedf17494a35 |
children | c12fd8e5c1b0 |
files | materials/parsealloys.pl |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/materials/parsealloys.pl Wed Dec 30 06:58:48 2015 +0200 +++ b/materials/parsealloys.pl Wed Dec 30 12:21:00 2015 +0200 @@ -44,6 +44,8 @@ my %data = (); my $fumble = 0; my $nline = 0; +my $ignored = 0; + sub addCombo($$$) { @@ -53,7 +55,8 @@ } else { - print STDERR "Ignoring fumbled combo $_[1] + $_[2] = $_[0]\n"; + $ignored++; + #print STDERR "Ignoring fumbled combo $_[1] + $_[2] = $_[0]\n"; } $fumble = 0; } @@ -75,6 +78,8 @@ } } +print STDERR "Ignored ".$ignored." fumbled alloys.\n"; + ### ### Re-format the data into single "ordered" hash, using as