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.
|
|---|