Perl Programming/Keywords/ PACKAGE

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Previous: __LINE__ Keywords Next: abs

The __PACKAGE__ keyword[edit | edit source]

__PACKAGE__ is a special token that returns the package name in which it occurs.

Syntax[edit | edit source]

  __PACKAGE__
Previous: __LINE__ Keywords Next: abs