in reply to ref 'n typeglob
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: ref 'n typeglob
by Pardus (Pilgrim) on Apr 01, 2003 at 01:14 UTC | |
by bbfu (Curate) on Apr 01, 2003 at 20:12 UTC |