in reply to Re: a few questions about __PACKAGE__
in thread a few questions about __PACKAGE__

I think the form of that idiom the OP had seen was probably
$ perl -wE 'print "${\__PACKAGE__}\n";'
main
(or "${\(...)}") which is a little less unsightly, if the expression returns a scalar.