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
Bug with qr// and multiline #4474
Comments
From neilw@ActiveState.comThis bug has to do with qr//m not working correctly. Here are two one-liners $ perl -wle '$a = "begin\nend"; $a =~ /^(begin)$/m; print $1' This means that somehow, the qr// operator, when combined with the 'm' $ perl -MData::Dumper -we 'print Dumper qr/^(begin)$/m' And even more strange, we can actually get the correct result by substituting $ perl -wle '$a = "begin\nend"; $a =~ qr/(?m-xis:^(begin)$)/; print $1' So there's only a problem with the trailing modifiers. This begs the question: 'i' modifier: 'x' modifier: 's' modifier: Perl Info
|
@smpeters - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#7781 (status was 'resolved')
Searchable as RT7781$
The text was updated successfully, but these errors were encountered: