-----Original Message-----
From: Nilay Puri, Noida Sent: Wednesday, February 04, 2004 11:37 AM
To: Perl (E-mail)
Subject: FW: special vars
-----Original Message-----
From: Nilay Puri, Noida Sent: Wednesday, February 04, 2004 11:32 AM
To: Perl (E-mail)
Subject: special vars
Hi all,
Can any one help me understand the usage of special variable $| ?
I know the description of this var. If set to nonzero, forces a flush after every write or print.
But I am not able to understand its importance.
If I am reading a file and writing the contents in a separat file after some processing. What will happen if I set $|=1 ?
Thanks, NP
if u use an OS like linux (which will not write things imediately to disc) this forces it to do so.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>