my $dokument .... my @blocks=split(//,$dokument) $dokument=shift(@blocks); for my $zaehler (1..$#blocks) { $dokument.="".shift(@blocks); }