New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.perl on strings doesn't properly escape all sequences #330
Comments
From @pmichaudOn Fri, Sep 19, 2008 at 11:29:30AM +0400, Andrew Shitov wrote:
We probably also need to escape other items that might cause interpolation Also need to check that non-ASCII characters are properly encoded. Pm |
From @moritzPatrick R. Michaud wrote:
(CC'ed p6c and the ticket, hope it worked) afaict the following characters needs escaping: \ (escaping) (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 Moritz -- |
The RT System itself - Status changed from 'new' to 'open' |
From @pmichaudOn Sun, Sep 21, 2008 at 10:50:22AM -0700, Moritz Lenz via RT wrote:
I tried to implement this using the .trans method on strings, I think that .trans needs to be reworked -- once that is Pm |
From @moritzPatrick R. Michaud wrote:
Something along these lines? my $x = ' say $x.trans(( # prints out Cheers, -- |
From @pmichaudStr.perl is now fixed in r31341. Thanks! Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#59068 (status was 'resolved')
Searchable as RT59068$
The text was updated successfully, but these errors were encountered: