blob: e6f292a7cbd10c8c598b07238efa26700c8840ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Solution by Ruben Westerberg
ch-1.pl and ch-1.p6
===
Run the program with commanline arguments enclosed in single quotes to prevent the shell from performing its own brace expansion. This will to multiple levels of expension and generate all combinations;
eg
./ch-1.pl '{Bob,Tim} say hello to {Mary,Rose}'
this will ouput 4 lines
Bob say hellow to Mary
Bob say hellow to Rose
Tim say hellow to Mary
Tim say hellow to Rose
ch-2.pl and ch-2.p6
===
Run the program to demonstrate calling a C function
|