Thread kontext bei map und tr ändern (10 answers)
Opened by undef at 2010-03-10 12:02

Taulmarill
 2010-03-10 12:13
#134408 #134408
User since
2004-02-19
1750 Artikel
BenutzerIn

user image
tr/// gibt die Anzahl der gemachten Ersetzungen zurück, hat hier also erst mal nichts mit Kontext zu tun. Den geänderten String bekommst du z.B. so:
Code (perl): (dl )
my @bla = map { tr/h//d; $_ } @string;
$_=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 kontext bei map und tr ändern