Skip to content

Commit

Permalink
split /^/ deprecation warning should not be on by default.
Browse files Browse the repository at this point in the history
p4raw-id: //depot/cfgperl@3925
  • Loading branch information
jhi committed Aug 5, 1999
1 parent 46a8fef commit 0e8f60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pp.c
Expand Up @@ -5010,7 +5010,7 @@ PP(pp_split)
else if (rx->prelen == 1 && *rx->precomp == '^') {
if (!(pm->op_pmflags & PMf_MULTILINE)
&& !(pm->op_pmregexp->reganch & ROPT_WARNED)) {
if (ckWARN_d(WARN_DEPRECATED))
if (ckWARN(WARN_DEPRECATED))
Perl_warner(aTHX_ WARN_DEPRECATED,
"split /^/ better written as split /^/m");
pm->op_pmregexp->reganch |= ROPT_WARNED;
Expand Down

0 comments on commit 0e8f60d

Please sign in to comment.