FIT3042 Lecture Notes - Lecture 23: Docstring, Plain Old Documentation, Javadoc

26 views4 pages
L23 : Perl Modules and OO
Using a Module
use Module (LIST);
Module may have namespace hierarchy with ::
LIST is oponal, not every module uses it
LIST is a list of names of things you want to import (subrounes or variables)
Module.pm is inserted into code using require()
Like C #include
Indicates success by ending with a true value
Module -> import( LIST) called
May insert funcons into callers namespace
May not exist (not an error)
Example:
Simple:
Useful:
Object-Oriented Perl
Perl’s OO model is very lightweight
No access control
No compile-me checking
No overload prevenon (final)
No special syntax for constructors
Unlock document

This preview shows page 1 of the document.
Unlock all 4 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers