Thread Probleme mit dem Substitutionsoperator (6 answers)
Opened by Gast at 2007-06-10 17:41

renee
 2007-06-10 22:53
#77427 #77427
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Warum kann man kein "each" schachteln?

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
C:\>perl
my %hash1 = (1 ,2,3,4,5,6);
my %hash2 = (2,3,4,5,6,7);

while( my ($c,$d) = each %hash1 ){
print $c," .. ", $d,"\n";
while( my ($e,$f) = each %hash2 ){
print " $e .. $f\n";
}
}
^D
1 .. 2
6 .. 7
4 .. 5
2 .. 3
3 .. 4
6 .. 7
4 .. 5
2 .. 3
5 .. 6
6 .. 7
4 .. 5
2 .. 3
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 Probleme mit dem Substitutionsoperator