Thread String teilen (7 answers)
Opened by kevin at 2005-10-26 16:23

coax
 2005-10-26 19:29
#59404 #59404
User since
2003-08-11
457 Artikel
BenutzerIn
[default_avatar]
Code: (dl )
1
2
3
4
my $length = 3;
my $data = 'aaabbbcccdddeeefffggghhh';
my @chunks = unpack("(A$length)*", $data);
print "$_\n" for @chunks;


Siehe
perldoc -f pack
perldoc perlpacktut
,,Das perlt aber heute wieder...'' -- Dittsche

View full thread String teilen