Re: Why does while and sleep work this way

2003-07-30 Thread $Bill Luebkert
Mitch Raful wrote: Can someone explain why the following code works: #!C:\Perl\bin\Perl.exe require disk_perflib; while(1) { sleep(5); print \n; printf %.0d\%, disk_perflib::GetDisk(); } But if I remove the print \n; it won't work. However, I can substitute both the print

Re: Why does while and sleep work this way

2003-07-30 Thread Sisyphus
- Original Message - From: Mitch Raful [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 3:03 PM Subject: Why does while and sleep work this way Can someone explain why the following code works: #!C:\Perl\bin\Perl.exe require disk_perflib; while(1) { sleep(5

Why does while and sleep work this way

2003-07-29 Thread Mitch Raful
Can someone explain why the following code works: #!C:\Perl\bin\Perl.exerequire disk_perflib; while(1) { sleep(5); print "\n"; printf "%.0d\%", disk_perflib::GetDisk();} But if I remove the print "\n"; it won't work. However, I can substitute both the print and printf statements with