----- Original Message ----- From: WC -Sx- Jones Sent: 21.04.2004, 13:32 Uhr
>Jan Eden wrote: >> if $mmdd > 0915 and $mmdd < 0630) ... >> >> in my calculation to allow for any combination of $80 and $55 days. > >(($mmdd > 0915) && ($mmdd < 0630)) ? $55 : $80; Thanks, I imagined a test like this as a subroutine, returning sub season { $date = shift; (($date > 0915) && ($mmdd < 0630)) ? return 0 : return 0; } and then calculate like this (Delta_Days takes two three element lists, I know): if (season($start_date) && season($end_date) { $season_days = Delta_Days($start_date, $end_date) } elsif season($start_date) { [snip] I will work it out. Thanks again, Jan -- There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence. - Jeremy S. Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>