Thread subroutine mit foreach schleife (8 answers)
Opened by blaise4714 at 2007-05-14 19:26

Froschpopo
 2007-05-14 20:30
#76718 #76718
User since
2003-08-15
2653 Artikel
BenutzerIn
[default_avatar]
Ausm Bauch heraus und ungetestet:
Vielleicht sowas?

Code: (dl )
1
2
3
4
5
6
my $next_index = sub {
my @array= (was, wie,wo,wann,wozu,wieso);
return defined $array[$_[0]+1] ? $array[$_[0]+1] : $array[0];
}

$callback = $next_index->(2);
\n\n

<!--EDIT|Froschpopo|1179164440-->

View full thread subroutine mit foreach schleife