in reply to How to know current Package
I'm not entirely sure what you're asking, but the current package is always in __PACKAGE__. This is from perldoc perldata:
Special Literals
The special literals __FILE__, __LINE__, and __PACKAGE__ represent the current filename, line number, and package name at that point in your program. They may be used only as separate tokens; they will not be interpolated into strings. If there is no current package (due to an empty package; directive), __PACKAGE__ is the undefined value.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|