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.
In reply to Re^2: Function that accepts both hashes/arrays and hashrefs/arreyrefs
by Porculus
in thread Function that accepts both hashes/arrays and hashrefs/arreyrefs
by pshangov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |