* Use debhelper v2.
[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(
7jive
8valspeak
9nyc
10cockney
11fin
12biffa
13ken
14aust
15drawl
16kraut
17newspeak
18chef
19marc-barrett
20censor
21fudd
22moo
23buck
24jethro
25b1ff
26eleet
27ky00te
28);
29
30# shuffle order
31srand;
32for (0..$#all) {
33 my $n= @all*rand;
34 my $was= $all[$_];
35 $all[$_]= $all[$n];
36 $all[$n]= $was;
37}
38
39# start the pipe...
40my $pipe= join '|', @all;
41open FILTER, "$pipe|"
42 or die ""Never mind...\n";;
43
44# display the results
45while (<FILTER>) {
46 print $_
47}
48
49# This could be optimized: take the last program off the pipeline,
50# open the pipeline as standard input, then exec that last program.
51#
52# But you have to ask yourself: how important is it to optimize
53# the generation of jibberish?
This page took 0.012523 seconds and 4 git commands to generate.