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
- 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
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