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