develooper Front page | perl.perl5.porters | Postings from November 2000

[PATCH perl@7825] Re: [ID 20001122.006] weird behaviour of $|

Thread Next
From:
Benjamin Holzman
Date:
November 26, 2000 13:26
Subject:
[PATCH perl@7825] Re: [ID 20001122.006] weird behaviour of $|
Message ID:
20001126162733.J25040@ecnvantage.com
The attached patch makes $| initialize itself to the appropriate value when
it's first created, fixing bug 20001122.006, wherein 

	$ perl -le 'print $| = ~$|'

is found to print 0 but

	$ perl -le '$a=$|; print $| = ~$|'

is found to print 1.  If this solution makes sense, are there other
magic variables that need this sort of initialization?

Ben
-- 
Benjamin Holzman				ECNvantage Corp.
Chief Technical Officer 			295 Park Avenue S., Suite 7C
(212) 358-0436 : bah@ecnvantage.com		New York, NY, 10010
$ perl -le 'print join $" ,reverse map ucfirst ,qw{ hacker perl another just}'

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About