Nice code!
But unfortunately I found a bug. If $start is after $end then your routine will loop till death.
Just changing not to 0 <= won't do the whole trick though, as your construction still would print the meals for the first date. A regular for/while loop would suite better here.
This is a good example of why one shouldn't have == instead of <= or >= unless one has to in loop conditions.
ihb
In reply to Re: Re: Critique
by ihb
in thread Critique
by phenom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |