blob: d4630658d1aab4707193f0cf76e8830f04de32d8 (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#!/usr/bin/env perl
#===============================================================================
#
# FILE: script2.pl
#
# USAGE: ./script2.pl
#
# DESCRIPTION: Adsense name finder.
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Stefan Suhren (su), suhren.stefan@fh-swf.de
# ORGANIZATION: FH Südwestfalen, Iserlohn
# VERSION: 1.0
# CREATED: 02.10.2015 10:56:07
# REVISION: ---
#===============================================================================
use strict;
use warnings;
use utf8;
my @buchstaben1 = ('b', 'm', 'n');
my @buchstaben2 = ('a', 'e', 'i', 'o', 'u');
my @buchstaben3 = ('b', 'c', 'd', 'x', 'y', 'z');
printf "Buchstaben 1: @buchstaben1\n";
printf "Buchstaben 2: @buchstaben2\n";
printf "Buchstaben 3: @buchstaben3\n\n";
my $zahl = 0;
foreach my $i1 (@buchstaben1)
{
foreach my $i2 (@buchstaben2)
{
foreach my $i3 (@buchstaben3)
{
$zahl++;
printf $i1 . $i2 . $i3 . " ";
if ($zahl % 8 == 0 )
{
printf "\n";
}
}
}
}
printf "\n\n$zahl Woerter erzeugt";
|