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
Inconsistent warning for hex escape #9644
Comments
From hmbrand@cpan.orgCreated by hmbrand@cpan.org$ perl -wle'"a\x1"=~s/a(?=\x1)//' The documented syntax for hex escapes is \xHH * Why do I get a double warning $ perl -wle'$_="a\x1)"' Here it *does* warn Same behaviour in 5.8.8 Perl Info
|
From p5p@spam.wizbit.be
(also said on #p5p) $_="a\x1"; does not warn since there are no characters after the 1. If we look at octal: $ perl -wle 'print "\01A";' $ perl -wle 'print "\018";' Doing a similar thing for hex should be possible (only warn if the A warning about \018 is useful since the user might be confusing Kind regards, Bram |
The RT System itself - Status changed from 'new' to 'open' |
The double warning was eliminated in perl-5.22.
Taking this ticket for the purpose of closing it within 7 days unless someone objects. |
Closing as per schedule. |
Migrated from rt.perl.org#63124 (status was 'open')
Searchable as RT63124$
The text was updated successfully, but these errors were encountered: