Perl Libraries and Modules
- Lack of code reuse
- Perl library (perl4 style)
- Problems with Libraries
- Prefix everything with unique name
- Namespaces
- Solution with namespace
- Modules
- Packages, @INC and Namespace hierarchy
- use, require and import
- Export - Import
- Restrict the import
- On demand Import
- Importing
- Modules - behind the scene
- Tools for packaging and distribution
- Packaging modules
- Makefile.PL of ExtUtils::MakeMaker
- Makefile.PL of Module::Install
- Build.PL of Module::Build
- Changes and README
- MANIFEST and MANIFEST.SKIP
- A script
- A module
- Packaging with Makefile.PL
- Packaging with Build.PL
- A test file
- Writing Tests
- Exercises: Multiply numbers
- Solution: Multiply numbers
- Overview