Patrick R. Michaud wrote:
> On Sun, Sep 21, 2008 at 03:34:50PM +0200, Carl Mäsak wrote:
>> 
>> Andrew (>):
>> > It turns out that .perl method does not escape
>> > dollars
>> 
>> Have you thought about reporting this via [EMAIL PROTECTED]
> 
> It's already there as RT #59068.
> 
> It would help if someone could describe all of the things that
> need escaping, either as prose, Perl code, or text.

(CC'ed p6c and the ticket, hope it worked)

afaict the following characters needs escaping:

        \     (escaping)
        "     (string delimiter)
        $%@&  (sigils)
        {     (closures)

(assembled from http://perlcabal.org/syn/S02.html#Literals )

Or in Perl 6 code:

s:g/<[\\$%@&{"]>/\\$0/

Additionally some white spaces might be nice to escape, but I don't
think it's mandatory: \n, \t.
Also non-ASCII-Codepoints could be replaced by their \x... or \c...
escape sequence.

Moritz

-- 
Moritz Lenz
http://moritz.faui2k3.org/ |  http://perl-6.de/

Reply via email to