Work with names.txt instead of names-sample.txt

This commit is contained in:
Petr Baudis 2014-10-13 19:17:22 +02:00
parent 8521ed8c6a
commit c31d035e1a
2 changed files with 9 additions and 3 deletions

View file

@ -1,12 +1,18 @@
Initialization
--------------
Copy `names-sample.txt` to `names.txt` or create your own `names.txt`.
Clobber your `~/votes.txt` file.
Generating Ballots
------------------
./gen-ballot.pl 15 <names-sample.txt
./gen-ballot.pl 15 <names.txt >tokens.txt
Web Ballot CGI Script
---------------------
Put `names-sample.txt` and `tokens.txt` to the same directory as
Put `names.txt` and `tokens.txt` to the same directory as
`web-ballot.pl` and make that directory available for CGI script execution.
If this directory is accessible over web, don't forget to remove read
permissions for all but the owner.

View file

@ -7,7 +7,7 @@ use v5.10;
use CGI;
our @names;
open my $fh, "names-sample.txt" or die "$!";
open my $fh, "names.txt" or die "$!";
while (<$fh>) {
chomp;
push @names, $_;