Thread Jede zweite Zeile eines Arrays anders formatieren (13 answers)
Opened by cbxk1xg at 2004-12-19 23:14

Taulmarill
 2004-12-20 12:30
#3838 #3838
User since
2004-02-19
1750 Artikel
BenutzerIn

user image
wenn man das ganze ohne template system macht, würde ich modulo bevorzugen:
Code: (dl )
1
2
3
4
for (1 .. 70) {
print $_ % 2 ? "a" : "b";
}
print "\n";
$_=unpack"B*",~pack"H*",$_ and y&1|0& |#&&print"$_\n"for@.=qw BFA2F7C39139F45F78
0A28104594444504400 0A2F107D54447DE7800 0A2110453444450500 73CF1045138445F4800 0
F3EF2044E3D17DE 8A08A0451412411 F3CF207DF41C79E 820A20451412414 83E93C4513D17D2B

View full thread Jede zweite Zeile eines Arrays anders formatieren