Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Function that accepts both hashes/arrays and hashrefs/arreyrefs

by Porculus (Hermit)
on Jun 19, 2009 at 18:38 UTC ( [id://773114]=note: print w/replies, xml ) Need Help??


in reply to Re: Function that accepts both hashes/arrays and hashrefs/arreyrefs
in thread Function that accepts both hashes/arrays and hashrefs/arreyrefs

That's not a great way to do it; your code will, for example, think it's got an array reference if someone passes the string "This is NOT an array(really!)" as an argument.

A better approach is to use the ref function.

Log In?
Username:
Password:

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

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

    No recent polls found