diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-22 12:46:26 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-22 12:46:26 +0000 |
commit | eeb6a2c983b428f442d6f8105468afb166a69047 (patch) | |
tree | 385f42580bec3f407f974b915482322bd670664d | |
parent | b7e88d4403a3f62fd94b9397a3275f2e7d3f7928 (diff) | |
download | perl-eeb6a2c983b428f442d6f8105468afb166a69047.tar.gz |
wrong category for exec() warning
p4raw-id: //depot/perl@4844
-rw-r--r-- | op.c | 6 | ||||
-rw-r--r-- | pod/perlop.pod | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -6371,8 +6371,10 @@ Perl_peep(pTHX_ register OP *o) line_t oldline = CopLINE(PL_curcop); CopLINE_set(PL_curcop, CopLINE((COP*)o->op_next)); - Perl_warner(aTHX_ WARN_SYNTAX, "Statement unlikely to be reached"); - Perl_warner(aTHX_ WARN_SYNTAX, "(Maybe you meant system() when you said exec()?)\n"); + Perl_warner(aTHX_ WARN_EXEC, + "Statement unlikely to be reached"); + Perl_warner(aTHX_ WARN_EXEC, + "(Maybe you meant system() when you said exec()?)\n"); CopLINE_set(PL_curcop, oldline); } } diff --git a/pod/perlop.pod b/pod/perlop.pod index a7553dff42..5a901c00df 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -362,7 +362,7 @@ With the C-style operators that would have been written like this: unlink("alpha", "beta", "gamma") || (gripe(), next LINE); -Use "or" for assignment is unlikely to do what you want; see below. +Using "or" for assignment is unlikely to do what you want; see below. =head2 Range Operators |