in reply to finding module name?

perl -le 'package foo ;print eval('__PACKAGE__');'

Replies are listed 'Best First'.
Re^2: finding module name?
by chromatic (Archbishop) on Jan 24, 2009 at 04:57 UTC

    You don't need the eval; __PACKAGE__ doesn't interpolate by itself, but think of it as a package-scoped constant.