summaryrefslogtreecommitdiff
path: root/support/acroweb/acroweb/template2.pl
blob: e8dde9368efb5e6c656c08cb6ca96ad2c9d1ff44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use acroweb_eng;


# we print the head
system("cat template2.head");


# variant A : four random questions from the file template.txt first
# and then another four questions from file template2.txt

#print genrandom("template.txt",4,4,0);
#print genrandom("template2.txt",4,4,1);


# variant B : four random questions from the file template.txt and
# four questions from file template2.txt in random order

@outA=genrandom("template.txt",4,4,0);
@outB=genrandom("template2.txt",4,4,0);
@out=(@outA, @outB);
print permutemyfield(@out);



# we finish the file
system("cat template2.tail");