There's more than one way to do things | |
PerlMonks |
Re^2: Elegant way to split into sequences of identical chars?by bioMan (Beadle) |
on Nov 29, 2005 at 23:13 UTC ( [id://512796]=note: print w/replies, xml ) | Need Help?? |
I was fascinated by the use of the $| "output autoflush". I usually use '$| = 1;' or '++$|;' for the scripts I write on Windows. So I tried the same.
The output being: xx,55,6,xx xx,x,55,5,6,6,xx,x I was somewhat suprised as all the documentation I've seen for '$|' says a non-zero value will force fflush after every 'write' or 'print' statement. I assumed the behavior would be the same for positive and negative values. What gives? Mike
In Section
Seekers of Perl Wisdom
|
|