in reply to Re^3: condensing code
in thread condensing code

Wha??? Sure it does 31 => 2 and 61 => 3 just like the OP:

$ perl -e 'print int( (31-1) / 30 ) + 1, "\n"' 2 $ perl -e 'print int( (61-1) / 30 ) + 1, "\n"' 3

-derby

Replies are listed 'Best First'.
Re^5: condensing code
by ptum (Priest) on Sep 08, 2006 at 20:00 UTC

    Sorry. I got a little overzealous 'correcting' you. You're right ... I need to slow down a little before posting. :)