Question:

Which guidelines by Perl modules must be followed?

Answer:

In Perl, the following guidelines must follow by the modules:

The file name of a module must the same as the package name.

The name of the package should always begin with a capital letter.

The entire file name should have the extension “.pm”.

In case no object oriented technique is used the package should be derived from the Exporter class.

Also if no object oriented techniques are used the module should export its functions and variables to the main namespace using the @EXPORT and @EXPOR_OK arrays (the use directive is used to load the modules).

Above are guidelines and are not mandatory


Keywords:

© 2017 QuizBucket.org