Thread Halb Kartesisches Produkt bilden
(7 answers)
Opened by Gast at 2007-10-10 21:17 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 #!/usr/bin/perl use strict; use warnings; my @array=("abc","1,2,3","T","pu,pr"); my ($dyn_one,$dyn_two) = @array[1,3]; for my $i ( split /,/, $dyn_one ){ for my $end ( split /,/, $dyn_two ){ print sprintf "%s%s%s%s\n", $array[0],$i,$array[2],$end; } } 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/ |