summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-10-14 14:58:21 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-10-14 14:58:21 +0000
commitddcf8bc1d288a9d34b94e354ef9f98b84591150c (patch)
treebca1a1dd61affb917b99a2afd6809442441e4458 /perl.c
parent3679267a1146847531c6d6f9fc1a5988659ca0aa (diff)
downloadperl-ddcf8bc1d288a9d34b94e354ef9f98b84591150c.tar.gz
Fix [perl #31971] local $^D gives noise
p4raw-id: //depot/perl@23365
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl.c b/perl.c
index 70e1bd0d59..5321758f6a 100644
--- a/perl.c
+++ b/perl.c
@@ -2373,7 +2373,7 @@ NULL
#ifdef DEBUGGING
int
-Perl_get_debug_opts(pTHX_ char **s)
+Perl_get_debug_opts(pTHX_ char **s, bool givehelp)
{
static char *usage_msgd[] = {
" Debugging flag values: (see also -d)",
@@ -2420,7 +2420,7 @@ Perl_get_debug_opts(pTHX_ char **s)
i = atoi(*s);
for (; isALNUM(**s); (*s)++) ;
}
- else {
+ else if (givehelp) {
char **p = usage_msgd;
while (*p) PerlIO_printf(PerlIO_stdout(), "%s\n", *p++);
}
@@ -2534,7 +2534,7 @@ Perl_moreswitches(pTHX_ char *s)
#ifdef DEBUGGING
forbid_setid("-D");
s++;
- PL_debug = get_debug_opts(&s) | DEBUG_TOP_FLAG;
+ PL_debug = get_debug_opts(&s, 1) | DEBUG_TOP_FLAG;
#else /* !DEBUGGING */
if (ckWARN_d(WARN_DEBUGGING))
Perl_warner(aTHX_ packWARN(WARN_DEBUGGING),