A silly question about perl programming

Status
Not open for further replies.

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
 

That means you enable autoflush. So any output to stdout gets output immediately, instead of some buffering.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…