[VPM] override perl-types
Darren Duncan
darren at DarrenDuncan.net
Mon Nov 13 17:41:15 PST 2006
At 5:18 PM -0800 11/13/06, Jer A wrote:
>hi all,
>
>i have an idea, and I wonder if it can be done using just perl code.
>
>I would like to override a datatype, so when that type is
>initialized,acted apon,or manipulated,I can customize the code, and
>store the data in a different way, eg. in memory or whatever.
>
>eg. suppose I want @arr to be actually a concatinated string, but
>act as if it is an array.
>
>I hope you understand what I am getting at.
>I am using perl 5.8.
>
>Your help is appreciated. thanks a bunch.
Lookup the Perl 5 "tie" feature ... it will probably do exactly what
you want. -- Darren Duncan
More information about the Victoria-pm
mailing list