On Sep 17, baby lakshmi said:

>should we have to use the bless fuction in the constructor alone???? we can 
>use the created object ($foo) to invoke the function. isnt it??? so whatz 
>the real advandage of using bless function??? and why we need to bless that 
>particular object to some specific classes...

The bless() function creates an object.  That is what it does.  Without
it, you can't have an object in the general sense of the word.  Using
bless() takes a reference, and makes it an object of a specific
class.  Then, that object can use the methods of the class it belongs to.

I suggest you read a Perl OO tutorial, such as perldoc perlboot.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to