aboutsummaryrefslogtreecommitdiff
path: root/challenge-024/ruben-westerberg/README
blob: bd6dab73ef617c8efb6d91b1fa247139ff02fc65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Solution by Ruben Westerberg

ch-1.pl and ch-1.p6
===
Shortest script that doesn't throw an error...
	usage
		perl ch-1.pl
		perl6 ch-1.pl
	Scripts are 0 bytes in size

ch-2.pl and ch-2.p6
===
Builds and prints out a inverted index of all words in in put documents. Text files are provided as command line arguments.
The output of the program show the word, the locations of this word in each of the files.
usage example:
	./ch-2.pl ../text/{beowulf.txt,pride.txt}