jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; print "Content-type: text/html\n\n"; my $in = 119.8; my $in_view = $in * 2; my $count = 0; my $period = 599; while ($count < 5){ unless ($period >= $in_view) { print "$period ::$in_view<br>"; $in = $period; } $count += 1; $period = $period - $in; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unexpected result using '>='
by GrandFather (Saint) on Aug 16, 2006 at 23:01 UTC | |
by jonnyfolk (Vicar) on Aug 16, 2006 at 23:18 UTC | |
by ysth (Canon) on Aug 16, 2006 at 23:47 UTC | |
by GrandFather (Saint) on Aug 16, 2006 at 23:51 UTC | |
by GrandFather (Saint) on Aug 16, 2006 at 23:27 UTC | |
by Thelonius (Priest) on Aug 17, 2006 at 16:31 UTC | |
by jonnyfolk (Vicar) on Aug 16, 2006 at 23:33 UTC | |
|
Re: unexpected result using '>='
by ysth (Canon) on Aug 16, 2006 at 23:42 UTC |