Here's the proper one;
while($_=~ s@\(([^\)]*?),@\($1;@gs){}
In reply to Re^2: Substituting a comma only when it is preceded and followed by a bracket
by Logicus
in thread Substituting a comma only when it is preceded and followed by a bracket
by barraclm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |