Hello Monks,
I have mangaged to program myself into a corner whereby an argument passed to a subroutine is in one case a reference to a list of strings and in the other a reference to a list of objects. I shall fix the problem by creating an appropriate list of strings from the list of objects.
However, I was wondering, if I did want to pass two different types of reference to the subroutine, what the best way of determining the type of reference within the subroutine would be.
Any ideas?
Thanks,
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |