-
Notifications
You must be signed in to change notification settings - Fork 577
meta character in //x comment #12836
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
Comments
From @tokuhiromCreated by [email protected]In this code, Perl5 does not replace anything without any warnings.
Following ruby code output warnings.
Output:
I guess, perl5 should output warnings, or ignore meta characters in regexp comment in //x mode. Perl Info
|
From @tokuhiromIn more detail, here is a test code. But this test can't pass. my $s = 'gfx'; Output in my environment is here: I know parsing s///x is hard, but I hope it works correctly or output (Note, Ruby1.8.7 can't parse ']' character after '#', but it output -- On Wed, Mar 6, 2013 at 3:06 PM, Tokuhiro Matsuno
|
From @tokuhiromI hope to process "]" character in comment as comment, in //x mode regexp But Perl5 uses "]" character in comment is Bracketed Character class ``` -- On Wed, Mar 6, 2013 at 3:31 PM, Tokuhiro Matsuno <tokuhirom@gmail.com>wrote:
|
From @tokuhiromOops. it's not bug. means, |
From [Unknown Contact. See original ticket]Oops. it's not bug. means, |
@iabyn - Status changed from 'new' to 'rejected' |
From @ikegamiOn Wed, Mar 6, 2013 at 1:55 AM, Tokuhiro Matsuno via RT <
Actually, s/[ f#x]/x Basically, comments aren't allowed in character classes. |
Migrated from rt.perl.org#117061 (status was 'rejected')
Searchable as RT117061$
The text was updated successfully, but these errors were encountered: