in reply to Module vs Singleton
Tutorials: Modules: How to Create, Install, and Use: Creating and Distributing Modules: Simple Module Tutorial
http://learn.perl.org/books/beginning-perl/ Chapter 10: Modules, Chapter 11: Object-Oriented Perl
In perl, you use package to create namespaces
package Foo; sub new {} # Foo::new, Foo->new package Bar; sub new {} # Bar::new, Bar->new
A module is a namespace associated with a file (Foo.pm) ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Module vs Singleton
by Your Mother (Archbishop) on Jul 15, 2011 at 21:26 UTC |