# New Ticket Created by Schwenn, Peter # Please include the string: [perl #121772] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=121772 >
Designation: Non-Finmeccanica Dear Perl6'rs [In short: no variation of $x ~~ s/...(...)../....$0..../; seems to work (to substitute any capture).] I am using 2014.3 Star's MSI to build a production translator (updating about 500 C# source files to be compatible with new libraries). I had looked forward to often using, as I have over 25 years using Perl, the stereotypically Perl form (in its Perl6 form) s///; Apparently because of perl6 restrictions on non-interpolating implicit quoting in the xxxx portion of s//xxxx/; (or some bug or oversight) one can no longer freely use $0, $1, in that replacement portion of s///; I've fallen back on such as: $line .= subst(/ (\w+) \s+ (\w+) /, :g, {$1~" "~$0} ); (substituting, say "bar foo" for "foo bar" in $line) where I would like to use some variation of the simpler and elegant $line ~~ s:g/ (\w+) \s+ (\w+) /$1 $0/; I have tried, using current S05 as a reference and for explicit suggestions, many variations of s///; without any luck. Is there a workable one such variation? (It would seem a shame if this stereotypic workhorse of Perl could no longer be used for substitution - no matter how many wondrous new ways there are to use the xxxx in s//xxxx/;) Looking forward to more production use of Perl6, fast or not, Thank you, Peter Schwenn Senior Naval Architect/Software Developer Advanced Marine Technology Center Maritime and Combat Support Systems Group DRS Technologies, Inc. 160 Sallitt Drive, Suite 200, Stevensville, MD 21666 Tel: 410.604.8007 Fax: 410.643.5370 pschw...@drs-ds.com<mailto:pschw...@drs-ds.com> www.drs-ds.com<http://www.drs-ds.com/> www.orca3d.com<http://www.orca3d.com/> [Description: Description: Description: C:\Users\amims\AppData\Local\Temp\Final-New-DRS-Color.png] This communication is intended only for use by the addressee(s) named herein and may contain business proprietary and/or legally privileged information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution, disclosure or copying of this e-mail and its contents is strictly prohibited. If you have received this e-mail in error, kindly notify the sender by replying to this message. In addition, please permanently delete the message and any attachments without copying or disclosing the contents. Thank you for your cooperation. 3.3.042312