[Israel.pm] object oriented anonymous autoloading?
beerholder at gmail.com
Mon Oct 13 07:50:14 PDT 2008
a word of caution, in case you stringify an object,
use OVERLOAD '""' => \&to_string, fallback => 1;
or you would have to declare all the symbols that the object can use
(i.e: eq, ne, == etc)
On Mon, Oct 13, 2008 at 4:04 PM, Shmuel Fomberg <semuelf at 012.net.il> wrote:
> Gabor Szabo wrote:
>> What you are looking for is to overload the stringification method of
>> your object.
> I can overload the stringification of an object? I didn't know.
> Hmmm.. what evil things I can do with this new toy.... :-)
> Perl mailing list
> Perl at perl.org.il
More information about the Perl