Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Is "ref $date eq 'ARRAY'" wrong?

by xenchu (Friar)
on Dec 19, 2003 at 15:13 UTC ( [id://315809]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://315809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found