Thread Wie kann man dies eleganter schreiben?: Einem Satz scalars die Kommas klauen. (20 answers)
Opened by DemoFreak at 2004-03-26 01:46

sri
 2004-03-26 15:05
#81249 #81249
User since
2004-01-29
828 Artikel
BenutzerIn
[Homepage] [default_avatar]
[quote=Strat,26.03.2004, 11:24]
Code: (dl )
1
2
3
4
my ($a, $b, $c, $d, $e, $f, $g, $h) = splice(@array, 0, 8);
foreach ($b, $c, $d, $e, $f, $g) {
s/\.//g;
}
[/quote]
Code: (dl )
1
2
my ( $a, $b, $c, $d, $e, $f, $g, $h ) = splice @array, 0, 8;
s/\.//g foreach $b, $c, $d, $e, $f, $g;

So find ichs noch etwas hübscher. ;)\n\n

<!--EDIT|sri|1080313464-->

View full thread Wie kann man dies eleganter schreiben?: Einem Satz scalars die Kommas klauen.