May 9, 2012 #1 V vahidkh6222 Full Member level 2 Joined Oct 11, 2005 Messages 137 Helped 6 Reputation 12 Reaction score 0 Trophy points 1,296 Activity points 2,419 Hello, I need to undersrtand a piece of code written in perl language. But I am stucked in the first line: $| = 1; What does this mean? is $| a variable initialised to 1? If yes, then why do we use this weird symbol as its name?! thanks in advance
Hello, I need to undersrtand a piece of code written in perl language. But I am stucked in the first line: $| = 1; What does this mean? is $| a variable initialised to 1? If yes, then why do we use this weird symbol as its name?! thanks in advance
May 9, 2012 #2 mrflibble Advanced Member level 5 Joined Apr 19, 2010 Messages 2,720 Helped 679 Reputation 1,360 Reaction score 652 Trophy points 1,393 Activity points 19,551 That means you enable autoflush. So any output to stdout gets output immediately, instead of some buffering.
That means you enable autoflush. So any output to stdout gets output immediately, instead of some buffering.