summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-10-31 20:46:02 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-10-31 20:46:02 +0000
commit18708f5a7334d978ddf7562cb7f58e28bec6e4ed (patch)
treefd546b7856fc3ed473e57722637cfad50805da86 /perl.c
parent539a3d6c530ba5e4a9bb32654bf5f07b038a4434 (diff)
downloadperl-18708f5a7334d978ddf7562cb7f58e28bec6e4ed.tar.gz
make nested ARGV/$^I loops work correctly; fixes several bugs
in the way ARGV state was handled in readline(); writing a subroutine to do inplace edits is now possible, provided *ARGV, *ARGVOUT, $^I and $_ are localized where needed p4raw-id: //depot/perl@4502
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 8324d52657..a35cdd783a 100644
--- a/perl.c
+++ b/perl.c
@@ -2767,6 +2767,7 @@ S_init_postdump_symbols(pTHX_ register int argc, register char **argv, register
for (; argc > 0; argc--,argv++) {
av_push(GvAVn(PL_argvgv),newSVpv(argv[0],0));
}
+ PL_argvout_stack = newAV();
}
if (PL_envgv = gv_fetchpv("ENV",TRUE, SVt_PVHV)) {
HV *hv;