Introduction to Perl Packages
Perl has a feature that allows you to package sets of code into its own package. You use packages to group subroutines so that these can be re-useable or to "isolate" variables used in a subroutine from other subroutines. This isolation of variables is one of the features to implement object oriented programming in Perl.