A package is a namespace beginning with a
package declaration and continuing until the end of the file or enclosing block. A module is a file with Perl code in it whose name ends in .pm. A module may contain zero or more packages. The default package is
main. Everything goes in
main unless otherwise specified.
For more, see package, and perlmod.