"Is it best to do this in the function? before it is returned?"
In general, a function should first validate the input it gets before doing any processing. This is for sure the best practice, although people don't usually do this. bobf already pointed out how to validate refs.
In reply to Re: Error Checking for Array Reference
by pg
in thread Error Checking for Array Reference
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |