Perl Object-Oriented Programming (object-oriented Perl) Translation (1)

Source: Internet
Author: User
Tags perl operator

Perl Object-Oriented Programming

For details, see damian Conway.

Directory
-----------------------------------------------------
Collation
Preface
Thank you
Online

1 What You Need To Know first (Object-Oriented)
1.1 object-oriented nature.
1.2 Other object-oriented concepts.
1.3 terms: Some (many) words.
1.4 where can I get more.
1.5 summary.

2 What You Need To Know (Perl advanced)
2.1 Perl nature.
2.2 Perl is not essential (very important !).
2.3 CPAN.
2.4.
2.5 Summary.

3. Departure
3.1 three small rules.
3.2 A simple Perl class.
3.3 make life simple.
3.4 structure and Analysis of Objects.
3.5 CD: music class.
3.6 summary.

4 arrays and scalar
4.1 what is wrong with hash.
4.2 array.
4.3 virtual hash.
4.4 scalar.
4.5 summary.

5 others
5.1 regular expression.
5.2 subroutine.
5.3 type group.
5.4 summary.

6 inheritance
6.1 how does Perl handle inheritance.
TIPS: 6.2.
6.3 Example: Inherit the CD class.
6.4.
6.5 summary.

7 Polymorphism
7.1 polymorphism in Perl.
7.2 example: The polymorphism method in lexer.
7.3 simple and visualized smart printer.
7.4 replace polymorphism with interfaces.
7.5.
7.6 Summary.

8. Automatic Object creation.
8.1 class: struct model.
8.2 class: methodmaker model.
8.3.
8.4 summary.

9 ties (tie, haha !)
9.1 requires a coat and tie.
9.2 tie and scalar.
9.3 tie and hash.
9.4 tie and array.
9.5 tie and file handle.
9.6 inherit from a connectable (tieable) package.
The 9.7 tie variable is used as the object.
9.8.
9.9 summary.

10 Operator overload
10.1 raise the question.
10.2 Perl operator overload mechanism.
10.3 example: a roman number.
10.4 undesirable reference semantics.
10.5 functions and misuse of Operators.
10.6 where to get more.
10.7 summary.

11 Encapsulation
11.1 structure hazard.
11.2 encapsulation through closures.
11.3 Encapsulation by scalar.
11.4 encapsulated by tie.
11.5.
11.6 summary.

!)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.