Perl Programming - SPLessons

Perl Coding Standards

Home > Lesson > Chapter 12
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Perl Coding Standards

Perl Coding Standards

shape Introduction

This chapter demonstrates about the Perl Coding Standards Each and every program have its own sense of writing the code using certain standards and following are the concepts covered in this chapter.
  • Coding Standards

Coding Standards

shape Description

In Perl Programming each and every program will have his own sense of writing the code by using some standards which are familiar with the other programmer and everyone should understand and support the code properly. Every time writing a simple code is easy but when the problems arise it need to maintain at later stages. The programmer needs to follow the proper guidelines and coding standards which need to be followed while writing the code. The programmer needs to load 'strict' and 'warning module' while writing the code which has its own preferences. Strict Which is used to declare the variable before using and which is also will tell if any bare word present in the code. Warning Module These are alternatively used by passing '-w' option to the Perl interpreter in shebang. a warning will print on the output. The image below demonstrates the Coding standards as shown.

Summary

shape Key Points

  • Every program must have the program standards.
  • Maintain Variable names as understandable lagugae.
  • Always user need to initialize the variables.