[Israel.pm] object oriented anonymous autoloading?

Ronen Angluster beerholder at gmail.com
Mon Oct 13 07:50:14 PDT 2008

Thanks Gabor!!!

a word of caution, in case you stringify an object,
better use:
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)

Happy sukot!

On Mon, Oct 13, 2008 at 4:04 PM, Shmuel Fomberg <semuelf at 012.net.il> wrote:
> Hi.
> 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.... :-)
> Shmuel.
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl

More information about the Perl mailing list