On Fri, 4 Aug 2017 17:51:01 +0200
hw <h...@gc-24.de> wrote:

> Huh? How many package statements is a module supposed to contain?
> And doesn´t a package statement turn a module into a package?

Convention is:

* One package per module.

* One module per package.

But if come across bad code, you may see more than one-to-one. :(



A module is a file that has a *.pm extension. Example: Foo.pm

A package is a name space that keeps its contents separate from other
packages.


-- 
Don't stop where the ink does.

        Shawn H Corey

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to