in reply to
Re: Regex refresher
in thread
Regex refresher
Another way to do this(since you are asking for a regex solution) $line =~ s/(\s+)/my $n++ < 6 ? ',': $1/eg; not very efficient though..
Comment on
Re^2: Regex refresher
In Section
Seekers of Perl Wisdom