Perl package Function
This function Changes the name of the current symbol table to NAME. The scope of the package name is until the end of the enclosing block. If NAME is omitted, there is no current package, and all function and variables names must be declared with their fully qualified names.
Following is the simple syntax for this function −
package NAME package
This function does not return any value.
To understand package keyword check Perl Modules session.
Following is the example code showing its basic usage −
When above code is executed, it produces the following result −