On Sat, Dec 07, 2002 at 01:20:26PM +1100, Damian Conway wrote: > Nicholas Clark mused: > > >I just had this thought - can I interpolate in there? > > > >Something like > >"\c[$(call_a_func())]" > > Why not just: > > "$(chr call_a_func()]" > > ???
Well, I was wondering if my function returned "CR", then "\c[$(call_a_func())]" would mean that the "CR" gets run thought the \c[...] conversion and a single byte ("\r") is what ends up in the string. Even if that's of little practical use, what does the language design team say should happen when perl6's 1 level lexer finds something that looks like an attempt to interpolate within one of the other double-quotish constructions? [should it (a) phone a friend, (b) ask the audience (c) 50/50 ?] Q "Is that your final answer?" A "for this week" :-) Nicholas Clark -- INTERCAL better than perl? http://www.perl.org/advocacy/spoofathon/