RE: Newbe looping questions

2002-02-05 Thread John Edwards
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

Newbe looping questions

2002-02-05 Thread Mark Richmond
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 "