Check out the wantarray function. I think that is what you want.
xenchu
In reply to Re: Is "ref $date eq 'ARRAY'" wrong? by xenchu in thread Is "ref $date eq 'ARRAY'" wrong? by bronto