* Don't use dh_installmanpages.
[filters.git] / jibberish
CommitLineData
7e3afbba 1#!/usr/bin/perl
2# jibberish -- run all filters in random order
3
4$ENV{PATH}.=":/usr/games";
5
6@all= qw(
dc17484a 7eleet
8b1ff
9chef
10jethro
11upside-down
12kraut
13cockney
7e3afbba 14jive
7e3afbba 15nyc
bc19f2cf 16ken
17ky00te
0652168f 18rasterman
7e3afbba 19newspeak
9edc0e61 20studly
7e3afbba 21);
22
23# shuffle order
24srand;
25for (0..$#all) {
26 my $n= @all*rand;
27 my $was= $all[$_];
28 $all[$_]= $all[$n];
29 $all[$n]= $was;
30}
31
32# start the pipe...
33my $pipe= join '|', @all;
34open FILTER, "$pipe|"
35 or die ""Never mind...\n";;
36
37# display the results
38while (<FILTER>) {
39 print $_
40}
41
42# This could be optimized: take the last program off the pipeline,
43# open the pipeline as standard input, then exec that last program.
44#
45# But you have to ask yourself: how important is it to optimize
46# the generation of jibberish?
This page took 0.011812 seconds and 4 git commands to generate.