Eagle_f90 has asked for the wisdom of the Perl Monks concerning the following question:
and it is not printing the HTML code even though $average is set to 3. I have gone though my O'riles book and been spending the better part of an hour on the web and can not find why this would not work. Every while loop example I see only uses one test but never says if that is the most you can use. Can I use 2 tests or am I limited to just 1 test? (If I remove one of the tests the code works fine)while ($i > 0 and $i <= $average) { print qq~<img src="http://www.ffinfo.com/images/misc/starfull. +gif" width="15" height="15" alt="Full Star" style="vertical-align: bo +ttom" /> ~; $i++ }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: while loops with two tests not working.
by GrandFather (Saint) on Jul 20, 2007 at 00:02 UTC | |
by Eagle_f90 (Acolyte) on Jul 20, 2007 at 00:31 UTC | |
by toolic (Bishop) on Jul 20, 2007 at 00:40 UTC | |
by Eagle_f90 (Acolyte) on Jul 20, 2007 at 00:52 UTC | |
by nedals (Deacon) on Jul 20, 2007 at 00:52 UTC | |
by GrandFather (Saint) on Jul 20, 2007 at 00:56 UTC | |
|
Re: while loops with two tests not working.
by Cody Pendant (Prior) on Jul 20, 2007 at 03:55 UTC |