A
Annoyed Grunt
Guest
For the longest time, I believed that the array reference accessor "@" would only work inside of scripts and would be useless outside of them. After reading around and doing some personal testing, it seems however that the behaviour described for scripts - arrays are passed as references in the argument variables, and it is only after the array is changed that a copy is made of them unless the accessor is used - is actually not limited to scripts but is used for ALL arrays. However, the manual itself makes no mention of this behaviour outside the context of scripts.
Is this just a case of the documentation being outdated or is by-reference array accessing not an explicitly supported feature and may break in the future?
Is this just a case of the documentation being outdated or is by-reference array accessing not an explicitly supported feature and may break in the future?