in reply to Re: Thoughts on Perl6 - Love it? Hate it?
in thread Thoughts on Perl6 - Love it? Hate it?
I don't want to have to do $filehandle.autoflush(1) instead of $|++.
Ugghhh! $++ doesn't do what you think. You think $| == 0 and that $|++ makes $|==1. Sure IFF $|==0. But what when some other fool does $|++. Then your $|++ doesn't do anything. Even worse $|-- doesns't set $|==0, because you blindly did $++. Now maybe your think this turns it into some sort of recursive lock type thing. No! because someone could have done $|=0 or $|=1 in another part or the code, cuz it's is the RightThing(tm).
Just remember that $|++ is a SIN. Don't do it.
BTW, what does $|==-1 even mean?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Thoughts on Perl6 - Love it? Hate it?
by blakem (Monsignor) on Jan 11, 2002 at 01:49 UTC | |
(ichimunki) Re x 3: Thoughts on Perl6 - Love it? Hate it?
by ichimunki (Priest) on Jan 11, 2002 at 01:42 UTC | |
by pdcawley (Hermit) on Apr 04, 2002 at 12:27 UTC |
In Section
Meditations