Don’t capitalise words in the middle of an error message
authorFather Chrysostomos <sprout@cpan.org>
Tue, 2 Nov 2010 15:38:57 +0000 (08:38 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 3 Nov 2010 04:32:34 +0000 (21:32 -0700)
op.c
t/re/subst.t

diff --git a/op.c b/op.c
index 290f11a..795de09 100644 (file)
--- a/op.c
+++ b/op.c
@@ -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:
index 9b5fd61..cb43510 100644 (file)
@@ -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 = '';