in reply to Re: Substituting a comma only when it is preceded and followed by a bracket
in thread Substituting a comma only when it is preceded and followed by a bracket
So, being very greedy, but mainly because I want to learn and not have to resort to Perl Monks (too often), please could someone help me understand how the answer
s[ ( \( ^)+ \) ) ][ ( my $x = $1 ) =~ tr,;; $x ]gex;;
works.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Substituting a comma only when it is preceded and followed by a bracket
by BrowserUk (Patriarch) on Nov 02, 2011 at 19:26 UTC | |
by locked_user sundialsvc4 (Abbot) on Nov 03, 2011 at 14:26 UTC | |
by BrowserUk (Patriarch) on Nov 03, 2011 at 18:12 UTC | |
|
Re^3: Substituting a comma only when it is preceded and followed by a bracket
by ww (Archbishop) on Nov 02, 2011 at 22:10 UTC |