#!/usr/bin/perl -w use strict; my $t= -181; for (my ($i,$j) = (30,1); $i <= 180; $i += 30, $j++) { if ($t <= $i) { print $j; last; } }
In reply to Re: condensing code
by ady
in thread condensing code
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |