5 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/perl
use strict;
use warnings;
seek DATA, 0, 0;
chomp (my @array = <DATA>);
my @data = grep {length} map {s~;$~~;$_} map {split /\s+/} @array;
print "'$_'\n" for @data;
open O, '>g:/muell.pl' or die $!;
WHILE: while (1) {
print O ' ' x (3 + 4 * int rand 3) or last WHILE;
for (0 .. random()) {
unless (print O ' ', $data[rand @data]) {
last WHILE;
}
}
print O ";\n" or last WHILE;
}
close O or warn $!;
sub random {
return 3 + int rand 5;
}
_#_DATA_#_
5 Einträge, 1 Seite |