No announcement yet.

Guide to the Learning of Object Oriented Programming in Perl

  • Filter
  • Time
  • Show
Clear All
new posts

  • Guide to the Learning of Object Oriented Programming in Perl

    OOP is the abbreviation for Object Oriented Programming. In OOP, the word, Class, means a set of variables and function that would work together. In OOP, and in simple terms, the word, Object, is the class, where the variables have been assigned values and the class is actually usable. Object Oriented Programming is programming, whereby, instead of using variables and functions separately, variables and functions are grouped and used as groups.

    Production of Classes and Objects in Perl
    Perl does not have a formal way to produce Classes and Objects, as you would find in a language like C++ or Java or PHP. You produce classes and objects in Perl by playing around with certain features of Perl. In particular, you produce classes and objects in Perl using certain constructs, functions, operators and Perl Reference.

    Learning OOP in Perl
    Is the learning of OOP in Perl difficult? No, unless you do not understand Perl reference and you are approaching it from the inventor's point of view. If you try to learn Perl from the official source (manual), you may not understand it. Most manuals and specifications are written from the point of view or inventors or experts. In my opinion, you will hardly find an expert who understands everything in a manual or specification. The inventors may understand everything, but not necessary experts. An expert would understand most of the things in the manual or specification (at the limit you would find an expert who understands everything). The ordinary programmer is neither an expert nor the inventor.

    So, the ordinary programmer or novice needs to learn from a simplified source (organized). Well, the ordinary programmer understands something in the manual or specification, but not to the extent that he can start coding.

    I assume you are an ordinary programmer or a novice or an expert who is not conversant with the Perl Manual. And so, I have prepared a set of tutorials on Perl OOP basics. In the tutorials you will hear of package construct, the sub function (routine) operator, the bless operator, the arrow operator and the double colon operator. Do not get frightened by all that vocabulary. They are all explained in simple terms in the tutorials.

    The things you should know before starting to learn OOP in Perl, are the basics of Perl and the Perl References. If you do not have knowledge in those areas, then study them first. The rest of things like the vocabulary mentioned above, are explained in simple terms in the tutorial series.

    The tutorial series have been prepared in a step-by-step fashion. The code samples are well formatted and so very readable. There is no missing special character, as you would find in web pages of other sites. The links to the different parts of the tutorial series are easily accessible from each page. To start the tutorials, click:

    Object Oriented Programming in Perl (simplified)