Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Think about Loose Coupling
 
PerlMonks  

Re^2: passing hashes and hash reference

by tadman (Prior)
on Apr 20, 2001 at 17:56 UTC ( [id://74254]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to (tye)Re: passing hashes and hash reference
in thread passing hashes and hash reference

How about:
sub rref { return UNIVERSAL::isa(@_); } if (rref($hash_ref,'HASH')) { # Wow! It's a hash! }
UNIVERSAL is such a wacky thing. It's exactly the kind of direction that I would expect Parrot to take, but only if somehow Java were involved.

Replies are listed 'Best First'.
(tye)Re2: passing hashes and hash reference
by tye (Sage) on Apr 20, 2001 at 18:00 UTC
    *isa= \&UNIVERSAL::isa; if( isa($ref,"HASH") ) {

    works for me. (:

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://74254]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.