diff options
author | Father Chrysostomos <sprout@cpan.org> | 2010-11-02 08:38:57 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-11-02 21:32:34 -0700 |
commit | 8db9069ca0bb3b524c2f656356fc526984285a58 (patch) | |
tree | a5d87de387b208aa5bbc38692773b32a7e5f4141 | |
parent | 6342d5c50ab0a9493ebc0908c3a6ec88d18e183b (diff) | |
download | perl-8db9069ca0bb3b524c2f656356fc526984285a58.tar.gz |
Don’t capitalise words in the middle of an error message
-rw-r--r-- | op.c | 2 | ||||
-rw-r--r-- | t/re/subst.t | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1152,7 +1152,7 @@ Perl_scalarvoid(pTHX_ OP *o) case OP_SUBST: if (cPMOPo->op_pmflags & PMf_NONDESTRUCT) - useless = "Non-destructive substitution (s///r)"; + useless = "non-destructive substitution (s///r)"; break; case OP_RV2GV: diff --git a/t/re/subst.t b/t/re/subst.t index 9b5fd61c63..cb43510d31 100644 --- a/t/re/subst.t +++ b/t/re/subst.t @@ -64,7 +64,7 @@ like( $@, qr{Using !~ with s///r doesn't make sense}, 's///r !~ operator gives e must_warn sub { $b = $a =~ s/left/right/r }, '^Use of uninitialized value', 's///r Uninitialized warning'; $a = 'david'; - must_warn 's/david/sucks/r; 1', '^Useless use of Non-destructive substitution', 's///r void context warning'; + must_warn 's/david/sucks/r; 1', '^Useless use of non-destructive substitution', 's///r void context warning'; } $a = ''; |