summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorBenjamin Holzman <bah@ecnvantage.com>2000-11-26 11:27:33 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-27 14:53:14 +0000
commitd8ce0c9a4592a2aeb75bb4cdd4af0c5382a2e6ab (patch)
tree813abc0f7d11d1b08ed5ea01d1ed3da131826fd9 /gv.c
parentb8e4d24f4b5aa6d96bf7be09a47f7ce02c09104b (diff)
downloadperl-d8ce0c9a4592a2aeb75bb4cdd4af0c5382a2e6ab.tar.gz
Re: [ID 20001122.006] weird behaviour of $|
Message-ID: <20001126162733.J25040@ecnvantage.com> p4raw-id: //depot/perl@7890
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index 86d8e791a4..5c9015d6e2 100644
--- a/gv.c
+++ b/gv.c
@@ -840,7 +840,6 @@ Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, I32 sv_type)
case ',':
case '\\':
case '/':
- case '|':
case '\001': /* $^A */
case '\003': /* $^C */
case '\004': /* $^D */
@@ -853,6 +852,11 @@ Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, I32 sv_type)
if (len > 1)
break;
goto magicalize;
+ case '|':
+ if (len > 1)
+ break;
+ sv_setiv(GvSV(gv), (IV)(IoFLAGS(GvIOp(PL_defoutgv)) & IOf_FLUSH) != 0);
+ goto magicalize;
case '\017': /* $^O & $^OPEN */
if (len > 1 && strNE(name, "\017PEN"))
break;