Thread Buchstaben generieren: Bruteforce-aehnlich (14 answers)
Opened by styx-cc at 2006-11-03 00:46

renee
 2006-11-03 12:58
#71318 #71318
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl

use strict;
use warnings;
use Math::Combinatorics;

my @zeichen = ('A'..'C');
my $count = 3;

my $combo = Math::Combinatorics->new( count => $count,
data => [(@zeichen) x $count]);

while(my @combo = $combo->next_combination){
print join(' ', @combo)."\n";
}
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Buchstaben generieren: Bruteforce-aehnlich