my creates a new variable, to which you assign a reference to a newly-created, empty array. Why would that affect the caller? You never changed the referenced array; you only changed a sub-scoped scalar.
In reply to Re: Pass array, then clear
by ikegami
in thread Pass array, then clear
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |