Kevin Viel schreef:

> I have to change the a CSV file, which represents numeric missing
> data with a period (.).  For instance:
> 
> One,.,.,.
> 
> Should be:
> 
> One,,,

If the first field can be just a dot too, consider this:

  s/ (\A|,) [.] (?=,|\z) /$1/xg 

(if you chomp first :) 

-- 
Affijn, Ruud

"Gewoon is een tijger."

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to