in reply to Re: Is it a scalar or a hash?
in thread Is it a scalar or a hash?

This is assuming you are passing in a hash ref instead of a hash. This is probably the better way of doing it anyway though, as you aren't passing a bunch of stuff around on each subroutine call.

Replies are listed 'Best First'.
Re: Re: Re: Is it a scalar or a hash?
by MeowChow (Vicar) on May 14, 2001 at 09:39 UTC
    Polymorphism is generally less stressful if you are passing and polymorphing on references. There really is no uncludgy way to discriminate between a list of two items and a hash, if not passed by reference.
       MeowChow                                   
                   s aamecha.s a..a\u$&owag.print