in reply to Is "ref $date eq 'ARRAY'" wrong?

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Re: Is "ref $date eq 'ARRAY'" wrong?
by hardburn (Abbot) on Dec 19, 2003 at 16:33 UTC

    Probably not. wantarray tells you what the caller wanted returned from a sub. ref tells you what a specific var is holding a ref to, which is what the OP is asking about.

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    : () { :|:& };:

    Note: All code is untested, unless otherwise stated