diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-02-14 10:25:55 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-02-14 10:25:55 +0000 |
commit | ded8aa31a400d00437fd50627d6c8013f58fd6ab (patch) | |
tree | 9512c4e24347fa09023817ba74cb353a5299b445 /pp_sys.c | |
parent | ce2f5d8f75586e7887cacd21ed88285c7953d9fc (diff) | |
download | perl-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.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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); } |