$var[$j] =~ s/\.\.\./\.\+/g;
The right half of an s/// substitution is not a regex, but a mere string. So if you want to construct .+ in the replacement, you need to write it as .+ and not at \.\+.
In reply to Re: Using special characters in left part of a regex match?
by moritz
in thread Using special characters in left part of a regex match?
by shamat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |