On Sep 11, baby lakshmi said:
>I am learning OOPs concepts. Can anyone tell me what is the real use of
>UNIVERSAL class(in built)?
The UNIVERSAL class offers three methods for every class: isa, can, and
VERSION. It also provides a place for you to write methods available to
every class.
>Also i read that, Unless otherwise we invoke the constructors, it wont be
>executed automatically.
>Then what is the speciality of the constructor in Perl??
A constructor is merely a means of creating an object. Some languages
require this method to be named "new". Most people do the same thing in
Perl, but there's no reason it has to be.
The "speciality" of the object constructor in Perl is no different from
any other language. Create and return an object.
--
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]