Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: Display tide based on time now.

by Anonymous Monk
on Mar 27, 2013 at 18:34 UTC ( #1025785=note: print w/replies, xml ) Need Help??


in reply to Re^4: Display tide based on time now.
in thread Display tide based on time now.

Sounds like you've got a very straightforward algorithm laid out there. It is difficult to be both "greater" and "equal" at the same time, but I presume you meant to say "or".

You may have also noticed how repetitive it is, and that it can be reworded as a for loop, using N, and (N+1)%$numTidePoints

Replies are listed 'Best First'.
Re^6: Display tide based on time now.
by Anonymous Monk on Mar 27, 2013 at 23:05 UTC
    Yes I know and that's why I am stuck!