In a pattern match, the period means "any character". You need to escape it to make it match only a literal period. One way:
s/\.\./,/;
Aaron B.
Available for small or large Perl jobs and *nix system administration; see my home node.
In reply to Re: Replace ".." with ","
by aaron_baugher
in thread [solved] Replace ".." with ","
by zaqwsxcde
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |