in reply to How to display name of current package

just for seek of completness (and because they are sparsed in index-functions with misregard of the underscore..), you can find all special literals in the dedicated section in perldata.

They are all special tokens Pay attention to __SUB__ that is available only on request. They are:__FILE__  __LINE__ __PACKAGE__ __SUB__ __END__ __DATA__

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: How to display name of current package
by Your Mother (Archbishop) on Aug 22, 2016 at 13:56 UTC

    Worth noting, I think, that __SUB__ is availabe >= v5.16. While it is ludicrous, quite a few of us are stuck on v5.10 or even v5.8. :\

      Or even 5.6.1 .... YIKES!

      As Occam said: Entia non sunt multiplicanda praeter necessitatem.