Perl OOP is simple. All you need is here http://perldoc.perl.org/perltoot.html And here http://perldoc.perl.org/perltooc.html
Short intro: Bless blesses a Datacontainer (scalar array or hash) with the name of the package. Block{ bless @array; print [EMAIL PROTECTED]; } Prints out something like Block Array {87423649} Instead of Array {98649862} Objects are build as arrays or hashes of "functions". You can create constructors as you like. Building a method new{} is the default. it returns itself. Class->Methode(); Class::Methode(); Or imported simple Method(); Inheritance is automated, there are some special Superclasses and Datacontainers (isa for example). Circular inheritance is not possible. Polymorphisim is not a problem, when you build your Object right. There are SO MANY EXAMPLES at CPAN ACME that it is not possible to miss them. www.cpan.org, search.cpan.org, http://perldoc.perl.org/ -----Ursprüngliche Nachricht----- Von: perl pra [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 13. September 2007 08:34 An: Beginners List Betreff: oops concepts Hi Gurus, I am aware of perl, Now I need to code in perl using oops. I have few queries Please clear my queries. What is bless? When bless used, What differene it makes if we bless a variable? How do we create a constructor of class. How do we call a method in class. how do we use public private and protected in perl OR are there any alternatives for this in perl? how do we implement polymorphisim and inheritance in perl. Please help me in understanding above concepts with small example. Thanks, Siva -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/