return $cov;
}
-sub make_table {
- my ($lowest_division, $used_ratings, $used_cov) = @_;
-
- print <<"EOF";
-
- <table>
- <tr>
- <th></th>
-EOF
+sub write_parms_to_file {
+ my ($used_ratings, $used_cov) = @_;
POSIX::setlocale(&POSIX::LC_ALL, 'C');
POSIX::setlocale(&POSIX::LC_ALL, 'nb_NO.UTF-8');
+ return $tmpnam;
+}
+
+sub make_table {
+ my ($lowest_division, $used_ratings, $used_cov) = @_;
+
+ print <<"EOF";
+
+ <table>
+ <tr>
+ <th></th>
+EOF
+
+ my $tmpnam = write_parms_to_file($used_ratings, $used_cov);
my %prob = ();
open MCCALC, "$config::base_dir/mcwordfeud $trials < $tmpnam |"