-
Notifications
You must be signed in to change notification settings - Fork 550
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
m'...' interpolates escape sequences #6360
Comments
From ksperling@web.deCreated by ksperling@web.deIn non-interpolating regex constructs like m'', In interpolating regex constructs, when interpolating This doesn't seem to be the right behaviour, as \n, \r, \x If the current behaviour is indeed intended, the documentation Demonstration Code: #!perl -wl print("---"); $x = '\x50'; Perl Info
|
From @schwern[ksperling@web.de - Thu Mar 06 17:17:50 2003]:
I call this a bug. The docs state that m'' does not interpolate and |
The RT System itself - Status changed from 'new' to 'open' |
From @demerphqI am closing this ticket. The behavior is as expected and the documentation has been updated accordingly. m'\n' does not refer to the *character* "\n", and is not interpolated, it is a regex meta-pattern (like \s) that happens to only match the character "\n". In fact ALL escapes are regex meta-patterns, and therefor the only thing that can be interpolated is vars, which are not interpolated in m''. The documentation has been updated to say "no variable intepolation" to make this clear. |
@demerphq - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#21491 (status was 'resolved')
Searchable as RT21491$
The text was updated successfully, but these errors were encountered: