> I changed this logic to 
> 
>       elsif ($var eq "exclude_period")
>       {
>               if (inPeriod (time, $args) == -1)
>               {
>                       close(CFG);
>               }
>       }
>       else
>       {
>               close(CFG);
>       }
> 
> so that CFG is not closed when time period is valid and exclude_period is
> being processed further.

Augh. Just for readability, why not...?
        
        elsif ($var ne "exclude_period")
        {
                close(CFG);
        }
        else   # $var eq exclude_period
        {
                if (inPeriod (time, $args) == -1)
                {
                        close(CFG);
                }
                # Else remain open and process
        }

-- 
Joe Rhett                                                      Chief Geek
[EMAIL PROTECTED]                                      ISite Services, Inc.

Reply via email to