blanket removal of emacs cruft from changelog files, and some other minor
[filters.git] / jibberish
... / ...
CommitLineData
1#!/usr/bin/perl
2# jibberish -- run all filters in random order
3
4$ENV{PATH}.=":/usr/games";
5
6@all= qw(
7eleet
8b1ff
9chef
10jethro
11upside-down
12kraut
13cockney
14jive
15nyc
16ken
17ky00te
18rasterman
19);
20
21@nonfree= qw(
22newspeak
23);
24
25# Test to see if non-free filters are here, if so, add them to @all.
26foreach (@nonfree) {
27 if (-x "/usr/games/$_") {
28 push @all, $_;
29 }
30}
31
32# shuffle order
33srand;
34for (0..$#all) {
35 my $n= @all*rand;
36 my $was= $all[$_];
37 $all[$_]= $all[$n];
38 $all[$n]= $was;
39}
40
41# start the pipe...
42my $pipe= join '|', @all;
43open FILTER, "$pipe|"
44 or die ""Never mind...\n";;
45
46# display the results
47while (<FILTER>) {
48 print $_
49}
50
51# This could be optimized: take the last program off the pipeline,
52# open the pipeline as standard input, then exec that last program.
53#
54# But you have to ask yourself: how important is it to optimize
55# the generation of jibberish?
This page took 0.008996 seconds and 4 git commands to generate.