in reply to perl substitution difficulty
What you want to do looks like this: substr($_, 0, 6) =~ s/\s/,/g;
Perl 6 in German