diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-03-19 00:25:46 +0000 |
---|---|---|
committer | Charles Bailey <bailey@genetics.upenn.edu> | 1996-03-19 00:25:46 +0000 |
commit | b084f20b80f6a49d07829dfa926905f4a8dd2220 (patch) | |
tree | 4455ba7d547a6313464a9ffe379c035ca2c77b22 /toke.c | |
parent | 96e55a2df88fa51e2823fda38d9d8cf030ba65e8 (diff) | |
download | perl-b084f20b80f6a49d07829dfa926905f4a8dd2220.tar.gz |
Don't double implicit loop if perl is invoked with -pn
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1485,8 +1485,9 @@ yylex() if (*d++ == '-') { while (d = moreswitches(d)) ; if (perldb && !oldpdb || - minus_n && !oldn || - minus_p && !oldp) + ( minus_n || minus_p ) && !(oldn || oldp) ) + /* if we have already added "LINE: while (<>) {", + we must not do it again */ { sv_setpv(linestr, ""); oldoldbufptr = oldbufptr = s = SvPVX(linestr); |