nmerriweather has asked for the wisdom of the Perl Monks concerning the following question:
in the current perl, is it possible to overload arrays or create some sort of class wrapper for arrays ?
i have a module that returns an array. i'd like that array to be blessed into some sort of class that i can call methods on.
python has this, but i've never seen anything like it in perl - so i'm assuming its not possible. just wanted to check.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: overload arrays ?
by eric256 (Parson) on Feb 08, 2007 at 23:59 UTC | |
|
Re: overload arrays ?
by Limbic~Region (Chancellor) on Feb 08, 2007 at 23:31 UTC | |
|
Re: overload arrays ?
by diotalevi (Canon) on Feb 09, 2007 at 00:07 UTC |