Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Regex refresherby xicheng (Sexton) |
on Mar 22, 2007 at 16:20 UTC ( [id://606069]=note: print w/replies, xml ) | Need Help?? |
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..
In Section
Seekers of Perl Wisdom
|
|