thanks. problem resolved
-----Original Message----- From: Flemming Greve Skovengaard [mailto:[EMAIL PROTECTED] Sent: 24 October 2004 12:13 To: [EMAIL PROTECTED] Cc: Kalkunte-Venkatachala, Sreedhar Subject: Re: How to empty the buffer [EMAIL PROTECTED] wrote: > Hi > > I have written a program to add the strings. Now after every execution how to flush > out the out. how > $i = 0; > while(<LOGFILE>) > { > $i++; > if ($i > 10) > { > last; > } > $var = $_; > $msg2="$var\n"; > } > print $msg2; > > After this I want to empty the $msg2. How? > > Regards > Sreedhar $msg2 = ""; -- Flemming Greve Skovengaard The prophecy of the holy Norns a.k.a Greven, TuxPower A tale of death and doom <[EMAIL PROTECTED]> Odin saw the final sign 4112.38 BogoMIPS The end is coming soon Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>