shows how the while loop will halt.
$bar = 10;
while ($foo <= $bar) {
print "$foo\n";
$foo++;
}
HTH
John
-Original Message-
From: Mark Richmond [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 03:50
To: [EMAIL PROTECTED]
Subject: Newbe looping questions
H
How do I loop until the value of variable changes?
In this example at some point the value of $foo
will change and I can continue
It seems that I need to re-eval the value some how
$bar = foo ;
$foo = qx(os_cmd); # sets $foo to foo
while ($foo eq $bar) {
$foo = qx(os_cmd);
print "