summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-02-14 10:25:55 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-02-14 10:25:55 +0000
commitded8aa31a400d00437fd50627d6c8013f58fd6ab (patch)
tree9512c4e24347fa09023817ba74cb353a5299b445 /pp_sys.c
parentce2f5d8f75586e7887cacd21ed88285c7953d9fc (diff)
downloadperl-ded8aa31a400d00437fd50627d6c8013f58fd6ab.tar.gz
allow C<select('foo')> to autovivify *foo (SelectSaver expects that)
p4raw-id: //depot/perl@2914
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/pp_sys.c b/pp_sys.c
index e4694bcfb6..a35a2060b9 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -1003,13 +1003,8 @@ PP(pp_select)
}
if (newdefout) {
- if (!GvIO(newdefout)) {
- if (ckWARN(WARN_UNOPENED))
- warner(WARN_UNOPENED, "select() on unopened file");
- if (SvTYPE(newdefout) != SVt_PVGV)
- RETURN;
- gv_IOadd(newdefout); /* XXX probably bogus */
- }
+ if (!GvIO(newdefout))
+ gv_IOadd(newdefout);
setdefout(newdefout);
}