diff options
author | Abigail <abigail@abigail.be> | 2017-01-13 20:29:58 +0100 |
---|---|---|
committer | Abigail <abigail@abigail.be> | 2017-01-16 19:18:15 +0100 |
commit | bfdc8cd3d5a81ab176f7d530d2e692897463c97d (patch) | |
tree | 685451f2fd81a09edcf0893ef2042a13502894f9 /dquote.c | |
parent | 838ba4df5dc7a6ea548005412fcf40feb86d2078 (diff) | |
download | perl-bfdc8cd3d5a81ab176f7d530d2e692897463c97d.tar.gz |
Deprecating the use of C<< \cI<X> >> to specify a printable character.
Starting in 5.14, we deprecated the use of "\cI<X>" when this
results in a printable character. For instance, "\c:" is just
a fancy way of writing "z". Starting in 5.28, this will be a
fatal error.
This also includes certain usage in regular expressions with the
experimental (?[ ]) construct, or when "use re 'strict'" is in
effect (also experimental).
Diffstat (limited to 'dquote.c')
-rw-r--r-- | dquote.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -46,10 +46,10 @@ Perl_grok_bslash_c(pTHX_ const char source, const bool output_warning) clearer[i++] = result; clearer[i++] = '\0'; - Perl_ck_warner(aTHX_ packWARN(WARN_SYNTAX), - "\"\\c%c\" is more clearly written simply as \"%s\"", - source, - clearer); + Perl_ck_warner_d(aTHX_ packWARN2(WARN_SYNTAX,WARN_DEPRECATED), + "\"\\c%c\" is more clearly written simply as \"%s\". " + "This will be a fatal error in Perl 5.28", + source, clearer); } return result; |