# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #130205]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=130205 >


It seems that when q:w is used with a pair of open-close delimiters AND those 
delimiters appear inside the stuff it's quoting, all whitespace is trimmed 
between the opening(closing) inner delimiter and the next(previous) thing
and only then does the stuff inside gets split into quote words; leading to the 
delimiters being, incorrectly, joined with other stuff:

16:29           m: dd q:w { [ ] { } }
16:29   camelia         rakudo-moar 054aca: OUTPUT«("[", "]", "\{}")␤»
16:30           m: dd q:w / [ ] { } /
16:30   camelia         rakudo-moar 054aca: OUTPUT«("[", "]", "\{", "}")␤»
16:30   viki    I don't get what that { } variant is doing...
16:31           m: dd q:w [ [ ] { } ]
16:31   camelia         rakudo-moar 054aca: OUTPUT«("[]", "\{", "}")␤»
16:31   viki    m: dd q:w [ [    ] { } ]
16:31   camelia         rakudo-moar 054aca: OUTPUT«("[]", "\{", "}")␤»
16:31   viki    m: dd q:w [ [  lulzwat  ] { } ]
16:31   camelia         rakudo-moar 054aca: OUTPUT«("[lulzwat]", "\{", "}")␤»
16:41           m: q:w “ 12 “ lulzwat ” 42 ”
16:41   camelia         rakudo-moar 054aca: ( no output )
16:42   viki    m: dd q:w “ 12 “ lulzwat ” 42 ”
16:42   camelia         rakudo-moar 054aca: OUTPUT«("12", "“lulzwat”", "42")␤»
16:42   viki    m: dd q:w “ 12 “ lulz   wat ” 42 ”
16:42   camelia         rakudo-moar 054aca: OUTPUT«("12", "“lulz", "wat”", 
"42")␤»

Reply via email to