Perl Programming/Keywords/ PACKAGE

Previous: __LINE__ Keywords Next: abs

The __PACKAGE__ keyword

edit

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

Syntax

edit
  __PACKAGE__
Previous: __LINE__ Keywords Next: abs