You attempted to solve this wrong two ways and missed the one "right" way. First - my() variables are not accessible via the symbol table and so typeglobs have no place in this discussion. Second - you don't need the prototype because - Third - @_'s elements are aliased to the actual variables.
In mysub tie the $_[0] variable directly. Don't shift it, don't pop it - you have to access it right inside the array.
In reply to Re: ref 'n typeglob
by diotalevi
in thread ref 'n typeglob
by Pardus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |