[Israel.pm] OO in perl question

Issac Goldstand margol at beamartyr.net
Thu Nov 4 02:07:44 PST 2004

It is, in the language of perldoc -f bless,  "the thingy referenced by REF 
that it is now an object in the CLASSNAME package"

Variable was possibly a bad pick of words, since it could just as easily be 
a coderef, or glob, but it usually tends to be a variable of some sort - a 
scalar or list, if not a hash, so I used it anyway...


----- Original Message ----- 
From: "Gaal Yahas" <gaal at forum2.org>
To: "Perl in Israel" <perl at perl.org.il>
Sent: Thursday, November 04, 2004 11:37 AM
Subject: Re: [Israel.pm] OO in perl question

> On Thu, Nov 04, 2004 at 11:08:06AM +0200, Issac Goldstand wrote:
>> First of all, you can store "a" in the blessed variable that represents
>> your class...
>> If that's not possible, then you can store $Da::a, $Db::a ... $Dk::a. In
>> class B, the get_a could do:
>> return eval ("$".ref($_[0])."::a");
> What is a blessed variable that represents a class?
> -- 
> Gaal Yahas <gaal at forum2.org>
> http://gaal.livejournal.com/
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl

More information about the Perl mailing list